test/tools/javac/annotations/testCrashNestedAnnos/TestCrashNestedAnnos.java

changeset 2188
f3ca12d680f3
parent 0
959103a6100f
equal deleted inserted replaced
2187:4788eb38cac5 2188:f3ca12d680f3
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 {}

mercurial