test/tools/javac/annotations/typeAnnotations/failures/common/arrays/DeclarationAnnotation.out

Mon, 31 Mar 2014 21:27:25 +0200

author
jlahoda
date
Mon, 31 Mar 2014 21:27:25 +0200
changeset 2355
4f7d19235357
parent 2210
a746587a1ff1
child 2525
2eb010b6cb22
permissions
-rw-r--r--

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

jlahoda@2355 1 DeclarationAnnotation.java:13:21: compiler.err.annotation.type.not.applicable
jjg@1755 2 DeclarationAnnotation.java:10:21: compiler.err.annotation.type.not.applicable
jjg@1755 3 DeclarationAnnotation.java:11:21: compiler.err.annotation.type.not.applicable
jjg@1755 4 DeclarationAnnotation.java:12:21: compiler.err.annotation.type.not.applicable
emc@2168 5 4 errors

mercurial