RFR: 8365676: javac incorrectly allows calling interface static method via type variable
Chen Liang
liach at openjdk.org
Wed Sep 3 12:53:48 UTC 2025
On Wed, 3 Sep 2025 09:53:40 GMT, Maurizio Cimadamore <mcimadamore 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?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27015#issuecomment-3249124415
More information about the compiler-dev
mailing list