hg: valhalla/valhalla/langtools: Add parser-support for type-specialization.

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Mon Jul 14 09:25:11 UTC 2014


Changeset: d9c7704baf6e
Author:    mcimadamore
Date:      2014-07-11 17:05 +0100
URL:       http://hg.openjdk.java.net/valhalla/valhalla/langtools/rev/d9c7704baf6e

Add parser-support for type-specialization.
* Added new 'valhalla' source flag used to enable valhalla-related features
* Added parser support for context-dependent keyword 'any' in type-variable declarations
* Generalized test infrastructure to check javac handling of 'lax' identifiers (assert, enum, underscore, any)

! src/share/classes/com/sun/tools/javac/code/Flags.java
! src/share/classes/com/sun/tools/javac/code/Source.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/parser/Tokens.java
! src/share/classes/com/sun/tools/javac/tree/JCTree.java
! src/share/classes/com/sun/tools/javac/tree/Pretty.java
! src/share/classes/com/sun/tools/javac/tree/TreeCopier.java
! src/share/classes/com/sun/tools/javac/tree/TreeMaker.java
- test/tools/javac/lambda/IdentifierTest.java
+ test/tools/javac/parser/laxIdentifiers/LaxIdentifierTemplate.java
+ test/tools/javac/parser/laxIdentifiers/LaxIdentifierTest.java
+ test/tools/javac/valhalla/typespec/Any.java



More information about the valhalla-dev mailing list