1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/annotations/testCrashNestedAnnos/TestCrashNestedAnnos.java Mon Nov 11 17:26:09 2013 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +/* @test /nodynamiccopyright/ 1.5 + * @bug 8027375 1.6 + * @summary Test that javac doesn't assert/crash when there are what looks to 1.7 + * be annotations nested inside erroneous annotations. 1.8 + * @compile/fail/ref=TestCrashNestedAnnos.out -XDrawDiagnostics TestCrashNestedAnnos.java 1.9 + */ 1.10 +public class TestCrashNestedAnnos { 1.11 + // A and B are not annotation types 1.12 + @A(@A1()) int foo() {} 1.13 + @B(@B1()) int bar() {} 1.14 +} 1.15 + 1.16 +class B {} 1.17 +class B1 {}