hg: jdk9/hs-emb/langtools: 12 new changesets
alejandro.murillo at oracle.com
alejandro.murillo at oracle.com
Sat Jun 14 00:53:24 UTC 2014
Changeset: 3dfd962149b2
Author: emc
Date: 2014-06-06 16:00 -0400
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/3dfd962149b2
8027262: Determine location for type annotations earlier in compiler pipeline
8027261: Single codepath for attaching annotations to symbols
8027258: Permit a single source annotation to generate multiple bytecode annotations
8027182: Incorrect annotation attributes for type annotations on constructor type parameters
8044010: TypeAnnotation attribute is not generated for repeatable annotation in type argument
8044009: TypeAnnotation attribute is not generated for repeatable annotation in nested types
8043974: TypeAnnotation attribute is not generated for repeatable annotation in lambda
8043669: Few of the ANNOT tests in JCK9 test suite fail with an AssertionError for exception_index
8042060: Type parameter annotations don't work with multiple type parameters
8037348: RuntimeInvisibleAnnotations should not be generated for type annotation on anonymous innerclass creation
Summary: Initial rearchitecting of type annotations frontend pipeline
Reviewed-by: jjg, jfranck, mcimadamore, jlahoda, wmdietl
! src/share/classes/com/sun/tools/javac/code/Attribute.java
! src/share/classes/com/sun/tools/javac/code/TargetType.java
! src/share/classes/com/sun/tools/javac/code/TypeAnnotationPosition.java
- src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
! src/share/classes/com/sun/tools/javac/comp/Annotate.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/AttrContext.java
! src/share/classes/com/sun/tools/javac/comp/DeferredAttr.java
! src/share/classes/com/sun/tools/javac/comp/Env.java
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! src/share/classes/com/sun/tools/javac/jvm/Gen.java
! test/tools/javac/annotations/typeAnnotations/TargetTypes.java
! test/tools/javac/annotations/typeAnnotations/classfile/ClassfileTestHelper.java
+ test/tools/javac/annotations/typeAnnotations/failures/AnnotatedClassExpr.java
+ test/tools/javac/annotations/typeAnnotations/failures/AnnotatedClassExpr.out
! test/tools/javac/annotations/typeAnnotations/failures/AnnotatedImport.java
! test/tools/javac/annotations/typeAnnotations/failures/AnnotatedImport.out
! test/tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage1.java
! test/tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage1.out
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotatePackages.out
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateScoping.out
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.java
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass2.out
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass3.java
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass3.out
! test/tools/javac/annotations/typeAnnotations/failures/common/arrays/DeclarationAnnotation.java
! test/tools/javac/annotations/typeAnnotations/failures/common/arrays/DeclarationAnnotation.out
! test/tools/javac/annotations/typeAnnotations/failures/common/arrays/MissingAnnotationValue.java
! test/tools/javac/annotations/typeAnnotations/failures/common/arrays/MissingAnnotationValue.out
! test/tools/javac/annotations/typeAnnotations/failures/common/innertypeparams/MissingAnnotationValue.java
! test/tools/javac/annotations/typeAnnotations/failures/common/innertypeparams/MissingAnnotationValue.out
! test/tools/javac/annotations/typeAnnotations/failures/common/newarray/MissingAnnotationValue.java
! test/tools/javac/annotations/typeAnnotations/failures/common/newarray/MissingAnnotationValue.out
! test/tools/javac/annotations/typeAnnotations/failures/common/receiver/MissingAnnotationValue.java
! test/tools/javac/annotations/typeAnnotations/failures/common/receiver/MissingAnnotationValue.out
! test/tools/javac/annotations/typeAnnotations/failures/common/typeArgs/MissingAnnotationValue.java
! test/tools/javac/annotations/typeAnnotations/failures/common/typeArgs/MissingAnnotationValue.out
! test/tools/javac/annotations/typeAnnotations/failures/common/typeparams/MissingAnnotationValue.java
! test/tools/javac/annotations/typeAnnotations/failures/common/typeparams/MissingAnnotationValue.out
! test/tools/javac/annotations/typeAnnotations/failures/common/wildcards/MissingAnnotationValue.java
! test/tools/javac/annotations/typeAnnotations/failures/common/wildcards/MissingAnnotationValue.out
+ test/tools/javac/annotations/typeAnnotations/newlocations/AllLocations.java
! test/tools/javac/annotations/typeAnnotations/newlocations/Expressions.java
! test/tools/javac/annotations/typeAnnotations/newlocations/NestedTypes.java
! test/tools/javac/annotations/typeAnnotations/newlocations/RepeatingTypeAnnotations.out
! test/tools/javac/annotations/typeAnnotations/referenceinfos/Fields.java
! test/tools/javac/processing/model/element/TestAnonClassNames.java
! test/tools/javac/tree/TreePosTest.java
! test/tools/javac/warnings/6747671/T6747671.out
! test/tools/javac/warnings/suppress/T6480588.out
! test/tools/javac/warnings/suppress/TypeAnnotations.out
! test/tools/javap/output/RepeatingTypeAnnotations.java
Changeset: f434ca8aface
Author: aeremeev
Date: 2014-06-06 16:08 -0400
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/f434ca8aface
8042451: Write tests for all possible kinds of type annotation
Summary: Add new tests for type annotations to improve case coverage
Reviewed-by: jjg, emc, abuckley
! test/tools/javac/annotations/typeAnnotations/referenceinfos/ClassExtends.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/ClassTypeParam.java
+ test/tools/javac/annotations/typeAnnotations/referenceinfos/ConstructorInvocationTypeArgument.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/Constructors.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/Driver.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/Fields.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/FromSpecification.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/Initializers.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java
+ test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodInvocationTypeArgument.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReceivers.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReturns.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodThrows.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodTypeParam.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/MultiCatch.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/NewObjects.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/ReferenceInfoUtil.java
+ test/tools/javac/annotations/typeAnnotations/referenceinfos/ResourceVariable.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/TypeCasts.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/TypeTests.java
Changeset: 01c43036a26e
Author: jjg
Date: 2014-06-08 15:02 -0700
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/01c43036a26e
7026941: 199: path options ignored when reusing filemanager across tasks
Reviewed-by: jlahoda, jfranck
! src/share/classes/com/sun/tools/javac/api/ClientCodeWrapper.java
! src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java
! src/share/classes/com/sun/tools/javac/file/JavacFileManager.java
! src/share/classes/com/sun/tools/javac/file/Locations.java
! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
! src/share/classes/com/sun/tools/javac/main/Main.java
! src/share/classes/com/sun/tools/javac/main/Option.java
! src/share/classes/com/sun/tools/javac/main/OptionHelper.java
! src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java
! src/share/classes/com/sun/tools/javac/util/BaseFileManager.java
! src/share/classes/com/sun/tools/javadoc/Start.java
! src/share/classes/com/sun/tools/javadoc/ToolOption.java
! test/tools/javac/T6358166.java
! test/tools/javac/T6358168.java
+ test/tools/javac/api/TestSearchPaths.java
! test/tools/javac/diags/ArgTypeCompilerFactory.java
! test/tools/javac/processing/6430209/T6430209.java
Changeset: 8d6a76a38178
Author: jlahoda
Date: 2014-06-09 10:17 +0200
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/8d6a76a38178
8033414: javac Plugin to receive notification (before and) after the compilation.
Summary: Introducing TaskEvent.Kind.COMPILATION, sending this event before and after compilation.
Reviewed-by: jjg, jfranck
Contributed-by: joel.franck at oracle.com, jan.lahoda at oracle.com
! src/share/classes/com/sun/source/util/TaskEvent.java
! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
! test/tools/javac/T6358024.java
! test/tools/javac/T6395974.java
! test/tools/javac/T6403466.out
+ test/tools/javac/api/taskListeners/CompileEvent.java
! test/tools/javac/api/taskListeners/TestSimpleAddRemove.java
Changeset: a8ebc1d5cde9
Author: mcimadamore
Date: 2014-06-09 12:54 +0100
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/a8ebc1d5cde9
8043725: javac fails with StackOverflowException
Summary: loose type comparison test should be protected against infinite recursion with fbounds
Reviewed-by: vromero
! src/share/classes/com/sun/tools/javac/code/Types.java
+ test/tools/javac/generics/inference/8043725/T8043725.java
Changeset: 020899586e8b
Author: emc
Date: 2014-06-09 15:46 -0400
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/020899586e8b
8046296: java/util/concurrent/BlockingQueue/PollMemoryLeak.java fails in nightly on all platform due to compiler issue
Summary: Alter logic to choose type of type annotation position for a variable declaration
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/comp/Attr.java
Changeset: f7be68b3bd2e
Author: dlsmith
Date: 2014-06-10 12:41 -0600
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/f7be68b3bd2e
8037385: constant pool errors with -target 1.7 and static default methods
Summary: Add error check for static interface methods invoked from -source 7
Reviewed-by: vromero, mcimadamore
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/diags/examples/StaticIntfMethodInvokeNotSupported.java
Changeset: 71e241ea30f1
Author: dlsmith
Date: 2014-06-10 15:25 -0600
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/71e241ea30f1
8015101: Covariance of return type implied by upper bounding on type parameter is ignored
Summary: Capture intersection supertypes before comparing their members
Reviewed-by: vromero
! src/share/classes/com/sun/tools/javac/comp/Check.java
! test/tools/javac/generics/wildcards/7034495/T7034495.out
+ test/tools/javac/generics/wildcards/T8015101.java
Changeset: 40d829674bb4
Author: pgovereau
Date: 2014-06-11 12:49 -0400
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/40d829674bb4
8027886: javac allows illegal receiver parameters
8029042: Receiver parameter not supported on local class constructor
Reviewed-by: jfranck, jlahoda
! src/share/classes/com/sun/tools/javac/code/Flags.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
! src/share/classes/com/sun/tools/javac/tree/TreeInfo.java
+ test/tools/javac/annotations/FinalReceiverTest.java
+ test/tools/javac/annotations/FinalReceiverTest.out
+ test/tools/javac/annotations/LocalInnerReceiverTest.java
! test/tools/javac/annotations/typeAnnotations/newlocations/Receivers.java
Changeset: 8e921a530aaf
Author: emc
Date: 2014-06-12 11:32 -0400
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/8e921a530aaf
8043484: DPrinter does not compile
Summary: Make DPrinter compile
Reviewed-by: jjg
! test/tools/javac/lib/DPrinter.java
Changeset: fd8da51c5df4
Author: katleman
Date: 2014-06-12 10:32 -0700
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/fd8da51c5df4
Added tag jdk9-b17 for changeset b64f8d5b97fa
! .hgtags
Changeset: 94543b979c40
Author: lana
Date: 2014-06-12 15:37 -0700
URL: http://hg.openjdk.java.net/jdk9/hs-emb/langtools/rev/94543b979c40
Merge
- src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
More information about the jdk9-hs-emb-changes
mailing list