RFR: 8365676: javac incorrectly allows calling interface static method via type variable [v2]

Chen Liang liach at openjdk.org
Thu Sep 4 14:22:46 UTC 2025


On Thu, 4 Sep 2025 12:29:50 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> I have created the CSR https://bugs.openjdk.org/browse/JDK-8366848. Please help review.
>
>> I have created the CSR https://bugs.openjdk.org/browse/JDK-8366848. Please help review.
> 
> suggestion: in the Specification section of the CSR consider including the related texts from the spec
> question regarding the wording in the CSR: with your patch, won't the invocation of static methods belonging to interfaces be rejected even if the interface is not the only upper bound of the type variable?

@vicente-romero-oracle I have updated the CSR to include relevant specs and give more examples. Please review again.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27015#issuecomment-3253970641


More information about the compiler-dev mailing list