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

Vicente Romero vromero at openjdk.org
Thu Sep 4 01:55:41 UTC 2025


On Wed, 3 Sep 2025 12:51:26 GMT, Chen Liang <liach at openjdk.org> wrote:

> > I'd suggest to add a test with a type variable with intersection type bound, just for good measure
> 
> Sure. One with bound `T extends Object & Comparator<Integer>` would definitely better showcase the JLS rules without the fix, as this is already correct. Do you think I need a CSR?

IMO yes, I think this deserves a CSR and probably release notes

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

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


More information about the compiler-dev mailing list