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 */ 7public class TestCrashNestedAnnos { 8 // A and B are not annotation types 9 @A(@A1()) int foo() {} 10 @B(@B1()) int bar() {} 11} 12 13class B {} 14class B1 {} 15