hg: jdk9/dev/langtools: 8035890: jdk8 javac -source 7 compiles test case it should not
jan.lahoda at oracle.com
jan.lahoda at oracle.com
Mon Mar 31 19:31:51 UTC 2014
Changeset: 2d06980994e0
Author: jlahoda
Date: 2014-03-31 21:27 +0200
URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/2d06980994e0
8035890: jdk8 javac -source 7 compiles test case it should not
Summary: Ensuring source level checks are performed in two additional cases related to type annotations, adding specialized error message for annotations after method type parameters.
Reviewed-by: jfranck, jjg
! 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/resources/compiler.properties
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateScoping.out
+ test/tools/javac/annotations/typeAnnotations/failures/CheckErrorsForSource7.java
! test/tools/javac/annotations/typeAnnotations/failures/common/arrays/DeclarationAnnotation.out
+ test/tools/javac/diags/examples/AnnotationsAfterTypeParamsNotSupportedInSource.java
More information about the jdk9-dev-changes
mailing list