hg: jdk9/dev/langtools: 8069265: ClassCastException when compiled with JDK 9b08+, JDK8 compiles OK.
jan.lahoda at oracle.com
jan.lahoda at oracle.com
Mon Feb 2 14:11:10 UTC 2015
Changeset: 2d2baba27992
Author: jlahoda
Date: 2015-02-02 18:52 +0530
URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/2d2baba27992
8069265: ClassCastException when compiled with JDK 9b08+, JDK8 compiles OK.
Summary: Alternate fix for 8015499 to eliminate extra checkcast (by working around a limitation in Types#asSuper) without the side effect that results in 8069265
Reviewed-by: mcimadamore, jjg
Contributed-by: srikanth.adayapalam at oracle.com
! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TransTypes.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java
+ test/tools/javac/CheckNoClassCastException.java
! test/tools/javac/T7053059/DoubleCastTest.java
More information about the jdk9-dev-changes
mailing list