hg: jdk7/tl/langtools: 7020043: Project Coin: diamond allowed on non-generic type

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Fri Feb 18 04:29:45 PST 2011


Changeset: 4ce95dc0b908
Author:    mcimadamore
Date:      2011-02-18 12:28 +0000
URL:       http://hg.openjdk.java.net/jdk7/tl/langtools/rev/4ce95dc0b908

7020043: Project Coin: diamond allowed on non-generic type
Summary: Diamond oerator should be disallowed on non-generic class types (i.e. String)
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/generics/diamond/neg/Neg12.java
+ test/tools/javac/generics/diamond/neg/Neg12.out



More information about the serviceability-dev mailing list