| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2008 BEA Systems, Inc. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
*******************************************************************************/ |
| 11 |
package targets.negative.pa; |
| 12 |
|
| 13 |
/** |
| 14 |
* Test case for annotations on non-generic parameters. |
| 15 |
* This code contains missing types, including missing annotation types. |
| 16 |
* The missing types all start with 'M'. |
| 17 |
* The desired behavior is specified in the javadoc for package |
| 18 |
* javax.lang.model.element: in general, missing types should be replaced |
| 19 |
* by empty types with the same name. |
| 20 |
*/ |
| 21 |
class Negative6 { |
| 22 |
@M11 M12 method1(@M13(@M14(@M15)) M16 arg0) { return null; } |
| 23 |
@M21("foo") String method2(@M22(value2 = "bar") int arg0) { return null; } |
| 24 |
String method3(@M31(1) String arg0, @M32(2) String arg1) { return null; } |
| 25 |
@M41 Negative6(@M42 M43 arg0) {} |
| 26 |
} |
| 27 |
|
| 28 |
|