equal
deleted
inserted
replaced
25 * @test |
25 * @test |
26 * @bug 6449781 |
26 * @bug 6449781 |
27 * @summary Test that reported names of anonymous classes are non-null. |
27 * @summary Test that reported names of anonymous classes are non-null. |
28 * @author Joseph D. Darcy |
28 * @author Joseph D. Darcy |
29 * @build TestAnonSourceNames |
29 * @build TestAnonSourceNames |
30 * @compile/fail -processor TestAnonSourceNames TestAnonClassNames.java |
30 * @compile -processor TestAnonSourceNames TestAnonClassNames.java |
31 * @build TestAnonClassNames |
|
32 * @run main TestAnonClassNames |
31 * @run main TestAnonClassNames |
33 */ |
32 */ |
34 |
33 |
35 /* |
34 /* |
36 * This test operates in phases to test retrieving the qualified name |
35 * This test operates in phases to test retrieving the qualified name |
38 * class. The type elements are generated using both source files and |
37 * class. The type elements are generated using both source files and |
39 * class files as the basis of constructing the elements. |
38 * class files as the basis of constructing the elements. |
40 * |
39 * |
41 * Source files will be tested by the @compile line which runs |
40 * Source files will be tested by the @compile line which runs |
42 * TestAnonSourceNames as an annotation processor over this file. |
41 * TestAnonSourceNames as an annotation processor over this file. |
43 * This compile line is expected to fail until 6930507 is fixed. Once |
|
44 * bug 6930507 is fixed, the "@compile/fail -processor ..." and |
|
45 * following "@build..." steps can be replaced with a single "@compile |
|
46 * -processor ..." directive. |
|
47 * |
42 * |
48 * Class files are tested by the @run command on this type. This |
43 * Class files are tested by the @run command on this type. This |
49 * class gets the names of classes with different nesting kinds, |
44 * class gets the names of classes with different nesting kinds, |
50 * including anonymous classes, and then invokes the compiler with an |
45 * including anonymous classes, and then invokes the compiler with an |
51 * annotation processor having the class files names as inputs. The |
46 * annotation processor having the class files names as inputs. The |