hg: jdk9/sandbox/langtools: 8161985: Spurious override of Object.getClass leads to NPE

chris.hegarty at oracle.com chris.hegarty at oracle.com
Fri Jul 22 11:51:14 UTC 2016


Changeset: 842f0bfe2811
Author:    mcimadamore
Date:      2016-07-22 12:38 +0100
URL:       http://hg.openjdk.java.net/jdk9/sandbox/langtools/rev/842f0bfe2811

8161985: Spurious override of Object.getClass leads to NPE
Summary: Attr.adjustMethodReturnType() tweaks return types w/o checking what method is being patched
Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
+ test/tools/javac/8161985/T8161985a.java
+ test/tools/javac/8161985/T8161985a.out
+ test/tools/javac/8161985/T8161985b.java
+ test/tools/javac/8161985/T8161985b.out



More information about the jdk9-sandbox-changes mailing list