Debian Codegraph @

org.eclipse.jdt.compiler.apt.tests/resources/targets/negative/pa/Negative1.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2007, 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 * This code is syntactic but contains semantic errors due to missing types.
15 * All the A* and Missing* types are expected to be unresolved.
16 * The desired behavior is specified in the javadoc for package
17 * javax.lang.model.element: in general, missing types should be replaced
18 * by empty types with the same name.
19 */
20 @interface Anno1 {
21 String value() default "foo";
22 }
23 @Ax.Ay.A3 class Negative1 {
24 @Anno1("spud") String s1;
25 @A4 Missing1 m1 = MISSING_VAL1;
26 @A5(@A6(@A7)) int i1;
27 @A8 Missing2.Missing3.Missing4 m2;
28 }