git: openjdk/jdk: master: 8337980: Javac allows invocation of an inherited instance method from a static method

Archie Cobbs acobbs at openjdk.org
Wed Oct 9 16:04:40 UTC 2024


Changeset: 38c1d651
Branch: master
Author:    Archie Cobbs <acobbs at openjdk.org>
Date:      2024-10-09 16:03:55 +0000
URL:       https://git.openjdk.org/jdk/commit/38c1d6514881363ffa4ed20b34bd8cdfd8343f5f

8337980: Javac allows invocation of an inherited instance method from a static method

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

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java
+ test/langtools/tools/javac/resolve/MethodAmbiguityCrash1.java
+ test/langtools/tools/javac/resolve/MethodAmbiguityCrash1.out
+ test/langtools/tools/javac/resolve/MethodAmbiguityCrash2.java
+ test/langtools/tools/javac/resolve/MethodAmbiguityCrash2.out



More information about the jdk-changes mailing list