hg: jdk8/tl/langtools: 2 new changesets

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Mon Oct 24 05:01:45 PDT 2011


Changeset: d346ab55031b
Author:    mcimadamore
Date:      2011-10-24 13:00 +0100
URL:       http://hg.openjdk.java.net/jdk8/tl/langtools/rev/d346ab55031b

7096014: Javac tokens should retain state
Summary: Refactor javac tokens from enum constants to stateful instances (to keep track of position, comments, etc.)
Reviewed-by: jjg

! src/share/classes/com/sun/tools/apt/main/AptJavaCompiler.java
- src/share/classes/com/sun/tools/javac/parser/DocCommentScanner.java
! src/share/classes/com/sun/tools/javac/parser/EndPosParser.java
+ src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
+ src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java
- src/share/classes/com/sun/tools/javac/parser/Keywords.java
! src/share/classes/com/sun/tools/javac/parser/Lexer.java
! src/share/classes/com/sun/tools/javac/parser/ParserFactory.java
! src/share/classes/com/sun/tools/javac/parser/Scanner.java
! src/share/classes/com/sun/tools/javac/parser/ScannerFactory.java
- src/share/classes/com/sun/tools/javac/parser/Token.java
+ src/share/classes/com/sun/tools/javac/parser/Tokens.java
+ src/share/classes/com/sun/tools/javac/parser/UnicodeReader.java
! src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
! src/share/classes/com/sun/tools/javadoc/JavadocTool.java
! test/tools/javac/api/TestJavacTaskScanner.java
+ test/tools/javac/depDocComment/DeprecatedDocComment3.java
+ test/tools/javac/tree/DocCommentToplevelTest.java

Changeset: 05814303a056
Author:    mcimadamore
Date:      2011-10-24 13:00 +0100
URL:       http://hg.openjdk.java.net/jdk8/tl/langtools/rev/05814303a056

7098660: Write better overload resolution/inference tests
Summary: Add overload/inference debug diagnostics - added test harness using annotations to check outcome of overload resolution/inference
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/code/Printer.java
! src/share/classes/com/sun/tools/javac/comp/Infer.java
! src/share/classes/com/sun/tools/javac/comp/Resolve.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/diags/examples/ApplicableMethodFound.java
+ test/tools/javac/diags/examples/ApplicableMethodFound1.java
+ test/tools/javac/diags/examples/DeferredMethodInst.java
+ test/tools/javac/diags/examples/FullInstSig.java
+ test/tools/javac/diags/examples/NotApplicableMethodFound.java
+ test/tools/javac/diags/examples/PartialInstSig.java
+ test/tools/javac/diags/examples/VerboseResolveMulti.java
+ test/tools/javac/diags/examples/VerboseResolveMulti1.java
+ test/tools/javac/resolve/Candidate.java
+ test/tools/javac/resolve/Pos.java
+ test/tools/javac/resolve/ResolveHarness.java
+ test/tools/javac/resolve/TraceResolve.java
+ test/tools/javac/resolve/tests/BoxedReturnTypeInference.java
+ test/tools/javac/resolve/tests/PrimitiveOverReferenceOverInferred.java
+ test/tools/javac/resolve/tests/PrimitiveOverReferenceOverVarargs.java
+ test/tools/javac/resolve/tests/PrimitiveOverReferenceVarargsAmbiguous.java
+ test/tools/javac/resolve/tests/PrimitiveOverload.java
+ test/tools/javac/resolve/tests/PrimitiveReturnTypeInference.java
+ test/tools/javac/resolve/tests/ReferenceOverInferred.java
+ test/tools/javac/resolve/tests/ReferenceOverVarargs.java
+ test/tools/javac/resolve/tests/ReferenceOverload.java



More information about the serviceability-dev mailing list