hg: jdk8/tl/langtools: 8027439: Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass(); ...

eric.mccorkle at oracle.com eric.mccorkle at oracle.com
Mon Nov 11 14:48:13 UTC 2013


Changeset: 4788eb38cac5
Author:    emc
Date:      2013-11-11 09:47 -0500
URL:       http://hg.openjdk.java.net/jdk8/tl/langtools/rev/4788eb38cac5

8027439: Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass()
8027253: javac illegally accepts array as bound
Summary: backing out change allowing arrays in intersection types
Reviewed-by: vromero

! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
- test/tools/javac/ArraysInIntersections.java
- test/tools/javac/InferArraysInIntersections.java
- test/tools/javac/diags/examples/InterfaceOrArrayExpected.java
! test/tools/javac/generics/typevars/6680106/T6680106.out




More information about the security-dev mailing list