hg: valhalla/valhalla/langtools: Add experimental support for generic class literals

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Mon Aug 18 13:29:38 UTC 2014


Changeset: 459f251550d5
Author:    mcimadamore
Date:      2014-08-18 14:25 +0100
URL:       http://hg.openjdk.java.net/valhalla/valhalla/langtools/rev/459f251550d5

Add experimental support for generic class literals
*) Now fully specialized classes literals are allowed with no warnings.
*) Specializable but not reifiable class literals are allowed with warnings.
*) Non-specializable class literals rejected.
*) Add new tests

! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/Lower.java
! src/share/classes/com/sun/tools/javac/comp/SpecializeTypes.java
! src/share/classes/com/sun/tools/javac/jvm/Gen.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! src/share/classes/com/sun/tools/javac/tree/JCTree.java
+ test/tools/javac/diags/examples/IllegalGenericTypeForClassLit.java
+ test/tools/javac/diags/examples/UncheckedGenericClassLit.java
! test/tools/javac/failover/CheckAttributedTree.java
+ test/tools/javac/valhalla/typespec/ClassLiterals01.java
+ test/tools/javac/valhalla/typespec/ClassLiterals01.out
! test/tools/javac/valhalla/typespec/items/Opcodes.java
+ test/tools/javac/valhalla/typespec/items/tests/TestClassLit.java



More information about the valhalla-dev mailing list