langtools/test/tools/javac/typeAnnotations/newlocations/BasicTest.java
changeset 7072 4863847e93a5
parent 5520 86e4b9a9da40
child 7681 1f0819a3341f
--- a/langtools/test/tools/javac/typeAnnotations/newlocations/BasicTest.java	Tue Oct 19 11:47:17 2010 +0530
+++ b/langtools/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.