diff -r 5286a99de2e6 -r 4851ff2ffc10 test/tools/javac/typeAnnotations/newlocations/BasicTest.java --- a/test/tools/javac/typeAnnotations/newlocations/BasicTest.java Tue Oct 19 11:47:17 2010 +0530 +++ b/test/tools/javac/typeAnnotations/newlocations/BasicTest.java Tue Oct 19 15:02:48 2010 -0700 @@ -27,7 +27,7 @@ * @bug 6843077 * @summary random tests for new locations * @author Matt Papi - * @compile -source 1.7 BasicTest.java + * @compile/fail/ref=BasicTest.out -XDrawDiagnostics BasicTest.java */ import java.util.*; @@ -38,6 +38,8 @@ @interface C {} @interface D {} +//308: Test inverted to verify that type annotations can not be parsed yet. + /** * Tests basic JSR 308 parser functionality. We don't really care about what * the parse tree looks like, just that these annotations can be parsed.