hg: jdk/jdk: 8194932: no ambuguity error is emitted if classfile contains two identical methods with different return types

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Fri Jan 12 16:55:06 UTC 2018


Changeset: a5f815d1060b
Author:    mcimadamore
Date:      2018-01-12 16:49 +0000
URL:       http://hg.openjdk.java.net/jdk/jdk/rev/a5f815d1060b

8194932: no ambuguity error is emitted if classfile contains two identical methods with different return types
Summary: add recovery logic when classfile contains two signature-equivalent methods
Reviewed-by: jlahoda, vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java
+ test/langtools/tools/javac/8194932/Foo.jcod
+ test/langtools/tools/javac/8194932/T8194932.java
+ test/langtools/tools/javac/8194932/T8194932.out



More information about the jdk-changes mailing list