25 /* |
25 /* |
26 * @test |
26 * @test |
27 * @bug 6843077 |
27 * @bug 6843077 |
28 * @summary random tests for new locations |
28 * @summary random tests for new locations |
29 * @author Matt Papi |
29 * @author Matt Papi |
30 * @compile -source 1.7 BasicTest.java |
30 * @compile/fail/ref=BasicTest.out -XDrawDiagnostics BasicTest.java |
31 */ |
31 */ |
32 |
32 |
33 import java.util.*; |
33 import java.util.*; |
34 import java.io.*; |
34 import java.io.*; |
35 |
35 |
36 @interface A {} |
36 @interface A {} |
37 @interface B {} |
37 @interface B {} |
38 @interface C {} |
38 @interface C {} |
39 @interface D {} |
39 @interface D {} |
|
40 |
|
41 //308: Test inverted to verify that type annotations can not be parsed yet. |
40 |
42 |
41 /** |
43 /** |
42 * Tests basic JSR 308 parser functionality. We don't really care about what |
44 * Tests basic JSR 308 parser functionality. We don't really care about what |
43 * the parse tree looks like, just that these annotations can be parsed. |
45 * the parse tree looks like, just that these annotations can be parsed. |
44 */ |
46 */ |