hg: valhalla/valhalla/langtools: Misc ref-only well-formedness fixes:

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Thu Oct 23 14:25:24 UTC 2014


Changeset: 4c4130d5be1f
Author:    mcimadamore
Date:      2014-10-23 15:22 +0100
URL:       http://hg.openjdk.java.net/valhalla/valhalla/langtools/rev/4c4130d5be1f

Misc ref-only well-formedness fixes:
* __RefOnly constructor and diamond doesn't work
* ban class decls that do not specify at least a constructor for all parameterizations
* bad __RefOnly methods from non generic classes

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/diags/examples/DoesNotDefineConstr.java
+ test/tools/javac/diags/examples/IllegalRefOnlyDef.java
+ test/tools/javac/valhalla/typespec/TestRefOnly07.java
+ test/tools/javac/valhalla/typespec/TestRefOnly07.out
+ test/tools/javac/valhalla/typespec/TestRefOnly08.java
+ test/tools/javac/valhalla/typespec/TestRefOnly08.out



More information about the valhalla-dev mailing list