langtools/test/tools/javac/annotations/testCrashNestedAnnos/TestCrashNestedAnnos.java
equal
deleted
inserted
replaced
|
1 /* @test /nodynamiccopyright/ |
|
2 * @bug 8027375 |
|
3 * @summary Test that javac doesn't assert/crash when there are what looks to |
|
4 * be annotations nested inside erroneous annotations. |
|
5 * @compile/fail/ref=TestCrashNestedAnnos.out -XDrawDiagnostics TestCrashNestedAnnos.java |
|
6 */ |
|
7 public class TestCrashNestedAnnos { |
|
8 // A and B are not annotation types |
|
9 @A(@A1()) int foo() {} |
|
10 @B(@B1()) int bar() {} |
|
11 } |
|
12 |
|
13 class B {} |
|
14 class B1 {} |