Thu, 27 Aug 2009 11:08:27 -0700
6875336: some tests should use /nodynamiccopyright/
Reviewed-by: darcy
jjg@309 | 1 | /* |
jjg@384 | 2 | * @test /nodynamiccopyright/ |
jjg@309 | 3 | * @bug 6843077 |
jjg@309 | 4 | * @summary test incomplete vararg declaration |
jjg@309 | 5 | * @author Mahmood Ali |
jjg@309 | 6 | * @compile/fail/ref=IncompleteVararg.out -XDrawDiagnostics -source 1.7 IncompleteVararg.java |
jjg@309 | 7 | */ |
jjg@309 | 8 | class IncompleteArray { |
jjg@309 | 9 | // the last variable may be vararg |
jjg@309 | 10 | void method(int @A test) { } |
jjg@309 | 11 | } |
jjg@309 | 12 | |
jjg@309 | 13 | @interface A { } |