View | Details | Raw Unified | Return to bug 108263 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/parser/AnnotationDietRecoveryTest.java (+2 lines)
Lines 254-259 Link Here
254
		"public @interface X {\n" + 
254
		"public @interface X {\n" + 
255
		"  {\n" + 
255
		"  {\n" + 
256
		"  }\n" + 
256
		"  }\n" + 
257
		"  <clinit>() {\n" + 
258
		"  }\n" + 
257
		"}\n";
259
		"}\n";
258
	
260
	
259
	String expectedDietPlusBodyUnitToString = 
261
	String expectedDietPlusBodyUnitToString = 
(-)src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java (-12 / +12 lines)
Lines 984-995 Link Here
984
				"	int[] value();\n" + 
984
				"	int[] value();\n" + 
985
				"}\n" 
985
				"}\n" 
986
			},
986
			},
987
		"----------\n" + 
987
			"----------\n" + 
988
		"1. ERROR in X.java (at line 2)\n" + 
988
			"1. ERROR in X.java (at line 2)\n" + 
989
		"	int[] tab;\n" + 
989
			"	int[] tab;\n" + 
990
		"	      ^^^\n" + 
990
			"	      ^^^\n" + 
991
		"The annotation field X.tab must be initialized with a constant expression\n" + 
991
			"The blank final field tab may not have been initialized\n" + 
992
		"----------\n");
992
			"----------\n");
993
	}		
993
	}		
994
	
994
	
995
	// check annotation array field initializer
995
	// check annotation array field initializer
Lines 1031-1042 Link Here
1031
				"	int value;\n" + 
1031
				"	int value;\n" + 
1032
				"}\n"
1032
				"}\n"
1033
			},
1033
			},
1034
		"----------\n" + 
1034
			"----------\n" + 
1035
		"1. ERROR in X.java (at line 2)\r\n" + 
1035
			"1. ERROR in X.java (at line 2)\n" + 
1036
		"	int value;\r\n" + 
1036
			"	int value;\n" + 
1037
		"	    ^^^^^\n" + 
1037
			"	    ^^^^^\n" + 
1038
		"The annotation field X.value must be initialized with a constant expression\n" + 
1038
			"The blank final field value may not have been initialized\n" + 
1039
		"----------\n");
1039
			"----------\n");
1040
	}
1040
	}
1041
	
1041
	
1042
	// check annotation field initializer
1042
	// check annotation field initializer

Return to bug 108263