git: openjdk/jdk: master: 8365676: javac incorrectly allows calling interface static method via type variable

Chen Liang liach at openjdk.org
Wed Sep 10 21:25:02 UTC 2025


Changeset: 85996572
Branch: master
Author:    Chen Liang <liach at openjdk.org>
Date:      2025-09-10 21:23:45 +0000
URL:       https://git.openjdk.org/jdk/commit/85996572b61e789d7e45bd26b23d233a0a41e158

8365676: javac incorrectly allows calling interface static method via type variable

Co-authored-by: Maurizio Cimadamore <mcimadamore at openjdk.org>
Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
+ test/langtools/tools/javac/generics/typevars/8365676/T8365676.java
+ test/langtools/tools/javac/generics/typevars/8365676/T8365676.out



More information about the jdk-changes mailing list