RFR: 8365676: javac incorrectly allows calling interface static method via type variable [v2]
Vicente Romero
vromero at openjdk.org
Thu Sep 4 21:59:20 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.
yep what @jddarcy said, I agree with him, the new behavior should affect only new releases
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27015#issuecomment-3255862775
More information about the compiler-dev
mailing list