Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a1b54ce9553cc4e2119378f3a5cae2d78dd1a481 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*******************************************************************************
 * Copyright (c) 2007, 2008 BEA Systems, Inc.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *******************************************************************************/
package targets.negative.pa;

/**
 * This code is syntactic but contains semantic errors due to missing types.
 * All the A* and Missing* types are expected to be unresolved.
 * The desired behavior is specified in the javadoc for package 
 * javax.lang.model.element: in general, missing types should be replaced
 * by empty types with the same name.
 */
@interface Anno1 {
	String value() default "foo";
}
@Ax.Ay.A3 class Negative1 {
	@Anno1("spud") String s1;
	@A4 Missing1 m1 = MISSING_VAL1;
	@A5(@A6(@A7)) int i1;
	@A8 Missing2.Missing3.Missing4 m2;
}

Back to the top