langtools/test/tools/javac/typeAnnotations/newlocations/BasicTest.java
changeset 7072 4863847e93a5
parent 5520 86e4b9a9da40
child 7681 1f0819a3341f
equal deleted inserted replaced
7071:8bcda461a06a 7072:4863847e93a5
    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  */