Mon, 31 Mar 2014 21:27:25 +0200
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 |