1 |
|
2 /* |
1 /* |
3 * Copyright (c) 2008 Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
4 * |
6 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
22 * questions. |
21 * questions. |
23 */ |
22 */ |
24 |
23 |
25 import java.lang.annotation.*; |
|
26 |
|
27 /* |
24 /* |
28 * @test |
25 * @test |
29 * @summary test acceptance of varargs annotations |
26 * @summary test acceptance of varargs annotations |
30 * @author Mahmood Ali |
27 * @author Mahmood Ali |
31 * @compile Varargs.java |
28 * @compile Varargs.java |
32 */ |
29 */ |
|
30 |
|
31 import java.lang.annotation.*; |
33 |
32 |
34 @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) |
33 @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) |
35 @interface A {} |
34 @interface A {} |
36 |
35 |
37 class Varargs { |
36 class Varargs { |