View | Details | Raw Unified | Return to bug 235004
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java (-14 / +14 lines)
Lines 8945-8951 Link Here
8945
			"1. WARNING in X.java (at line 6)\n" + 
8945
			"1. WARNING in X.java (at line 6)\n" + 
8946
			"	public int foo(T t) { return t.i + t.i() + T.M.j; }\n" + 
8946
			"	public int foo(T t) { return t.i + t.i() + T.M.j; }\n" + 
8947
			"	                                           ^^^^^\n" + 
8947
			"	                                           ^^^^^\n" + 
8948
			"Read access to enclosing field X<T>.M.j is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
8948
			"Read access to enclosing field X<T>.M.j is emulated by a synthetic accessor method\n" + 
8949
			"----------\n" + 
8949
			"----------\n" + 
8950
			"2. ERROR in X.java (at line 9)\n" + 
8950
			"2. ERROR in X.java (at line 9)\n" + 
8951
			"	class Y extends Zork {\n" + 
8951
			"	class Y extends Zork {\n" + 
Lines 19216-19227 Link Here
19216
    		"2. WARNING in X.java (at line 11)\n" + 
19216
    		"2. WARNING in X.java (at line 11)\n" + 
19217
    		"	private static class AA extends A {\n" + 
19217
    		"	private static class AA extends A {\n" + 
19218
    		"	                     ^^\n" + 
19218
    		"	                     ^^\n" + 
19219
    		"Access to enclosing constructor X.A() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
19219
    		"Access to enclosing constructor X.A() is emulated by a synthetic accessor method\n" + 
19220
    		"----------\n" + 
19220
    		"----------\n" + 
19221
    		"3. WARNING in X.java (at line 15)\n" + 
19221
    		"3. WARNING in X.java (at line 15)\n" + 
19222
    		"	private static class C extends B<AA> {\n" + 
19222
    		"	private static class C extends B<AA> {\n" + 
19223
    		"	                     ^\n" + 
19223
    		"	                     ^\n" + 
19224
    		"Access to enclosing constructor X.B<A>() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
19224
    		"Access to enclosing constructor X.B<A>() is emulated by a synthetic accessor method\n" + 
19225
    		"----------\n" + 
19225
    		"----------\n" + 
19226
    		"4. ERROR in X.java (at line 21)\n" + 
19226
    		"4. ERROR in X.java (at line 21)\n" + 
19227
    		"	System.out.println(b instanceof C);\n" + 
19227
    		"	System.out.println(b instanceof C);\n" + 
Lines 36762-36768 Link Here
36762
		"1. WARNING in X.java (at line 5)\n" + 
36762
		"1. WARNING in X.java (at line 5)\n" + 
36763
		"	private class Y<T> extends A {\n" + 
36763
		"	private class Y<T> extends A {\n" + 
36764
		"	              ^\n" + 
36764
		"	              ^\n" + 
36765
		"Access to enclosing constructor X.A() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
36765
		"Access to enclosing constructor X.A() is emulated by a synthetic accessor method\n" + 
36766
		"----------\n" + 
36766
		"----------\n" + 
36767
		"2. ERROR in X.java (at line 9)\n" + 
36767
		"2. ERROR in X.java (at line 9)\n" + 
36768
		"	class Y extends Zork {}\n" + 
36768
		"	class Y extends Zork {}\n" + 
Lines 37706-37712 Link Here
37706
		"4. WARNING in X.java (at line 15)\n" + 
37706
		"4. WARNING in X.java (at line 15)\n" + 
37707
		"	super(null);\n" + 
37707
		"	super(null);\n" + 
37708
		"	^^^^^^^^^^^^\n" + 
37708
		"	^^^^^^^^^^^^\n" + 
37709
		"Access to enclosing constructor X<T>(T) is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
37709
		"Access to enclosing constructor X<T>(T) is emulated by a synthetic accessor method\n" + 
37710
		"----------\n" + 
37710
		"----------\n" + 
37711
		"5. ERROR in X.java (at line 19)\n" + 
37711
		"5. ERROR in X.java (at line 19)\n" + 
37712
		"	for (Map.Entry<String, String> entry : myMap().entrySet()) {\n" + 
37712
		"	for (Map.Entry<String, String> entry : myMap().entrySet()) {\n" + 
Lines 39159-39165 Link Here
39159
		"2. WARNING in X.java (at line 5)\n" + 
39159
		"2. WARNING in X.java (at line 5)\n" + 
39160
		"	Object o1 = mObj;\n" + 
39160
		"	Object o1 = mObj;\n" + 
39161
		"	            ^^^^\n" + 
39161
		"	            ^^^^\n" + 
39162
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39162
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39163
		"----------\n" + 
39163
		"----------\n" + 
39164
		"3. ERROR in X.java (at line 5)\n" + 
39164
		"3. ERROR in X.java (at line 5)\n" + 
39165
		"	Object o1 = mObj;\n" + 
39165
		"	Object o1 = mObj;\n" + 
Lines 39174-39180 Link Here
39174
		"5. WARNING in X.java (at line 7)\n" + 
39174
		"5. WARNING in X.java (at line 7)\n" + 
39175
		"	Object o2 = mObj;\n" + 
39175
		"	Object o2 = mObj;\n" + 
39176
		"	            ^^^^\n" + 
39176
		"	            ^^^^\n" + 
39177
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39177
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39178
		"----------\n" + 
39178
		"----------\n" + 
39179
		"6. ERROR in X.java (at line 7)\n" + 
39179
		"6. ERROR in X.java (at line 7)\n" + 
39180
		"	Object o2 = mObj;\n" + 
39180
		"	Object o2 = mObj;\n" + 
Lines 39189-39195 Link Here
39189
		"8. WARNING in X.java (at line 9)\n" + 
39189
		"8. WARNING in X.java (at line 9)\n" + 
39190
		"	Object o3 = mObj;\n" + 
39190
		"	Object o3 = mObj;\n" + 
39191
		"	            ^^^^\n" + 
39191
		"	            ^^^^\n" + 
39192
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39192
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39193
		"----------\n");
39193
		"----------\n");
39194
}
39194
}
39195
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=203061 - variation
39195
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=203061 - variation
Lines 39224-39230 Link Here
39224
		"2. WARNING in X.java (at line 5)\n" + 
39224
		"2. WARNING in X.java (at line 5)\n" + 
39225
		"	Object o1 = mObj;\n" + 
39225
		"	Object o1 = mObj;\n" + 
39226
		"	            ^^^^\n" + 
39226
		"	            ^^^^\n" + 
39227
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39227
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39228
		"----------\n" + 
39228
		"----------\n" + 
39229
		"3. ERROR in X.java (at line 5)\n" + 
39229
		"3. ERROR in X.java (at line 5)\n" + 
39230
		"	Object o1 = mObj;\n" + 
39230
		"	Object o1 = mObj;\n" + 
Lines 39234-39240 Link Here
39234
		"4. WARNING in X.java (at line 6)\n" + 
39234
		"4. WARNING in X.java (at line 6)\n" + 
39235
		"	mObj = \"1\";\n" + 
39235
		"	mObj = \"1\";\n" + 
39236
		"	^^^^\n" + 
39236
		"	^^^^\n" + 
39237
		"Write access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39237
		"Write access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39238
		"----------\n" + 
39238
		"----------\n" + 
39239
		"5. ERROR in X.java (at line 6)\n" + 
39239
		"5. ERROR in X.java (at line 6)\n" + 
39240
		"	mObj = \"1\";\n" + 
39240
		"	mObj = \"1\";\n" + 
Lines 39249-39255 Link Here
39249
		"7. WARNING in X.java (at line 8)\n" + 
39249
		"7. WARNING in X.java (at line 8)\n" + 
39250
		"	Object o2 = mObj = \"2\";\n" + 
39250
		"	Object o2 = mObj = \"2\";\n" + 
39251
		"	            ^^^^\n" + 
39251
		"	            ^^^^\n" + 
39252
		"Write access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39252
		"Write access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39253
		"----------\n" + 
39253
		"----------\n" + 
39254
		"8. ERROR in X.java (at line 8)\n" + 
39254
		"8. ERROR in X.java (at line 8)\n" + 
39255
		"	Object o2 = mObj = \"2\";\n" + 
39255
		"	Object o2 = mObj = \"2\";\n" + 
Lines 39264-39275 Link Here
39264
		"10. WARNING in X.java (at line 10)\n" + 
39264
		"10. WARNING in X.java (at line 10)\n" + 
39265
		"	Object o3 = mObj;\n" + 
39265
		"	Object o3 = mObj;\n" + 
39266
		"	            ^^^^\n" + 
39266
		"	            ^^^^\n" + 
39267
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39267
		"Read access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39268
		"----------\n" + 
39268
		"----------\n" + 
39269
		"11. WARNING in X.java (at line 11)\n" + 
39269
		"11. WARNING in X.java (at line 11)\n" + 
39270
		"	mObj = \"3\";\n" + 
39270
		"	mObj = \"3\";\n" + 
39271
		"	^^^^\n" + 
39271
		"	^^^^\n" + 
39272
		"Write access to enclosing field X<T>.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
39272
		"Write access to enclosing field X<T>.mObj is emulated by a synthetic accessor method\n" + 
39273
		"----------\n" + 
39273
		"----------\n" + 
39274
		"12. ERROR in X.java (at line 11)\n" + 
39274
		"12. ERROR in X.java (at line 11)\n" + 
39275
		"	mObj = \"3\";\n" + 
39275
		"	mObj = \"3\";\n" + 
Lines 40928-40934 Link Here
40928
		"1. WARNING in p\\A.java (at line 18)\n" + 
40928
		"1. WARNING in p\\A.java (at line 18)\n" + 
40929
		"	this.box.set(new P());\n" + 
40929
		"	this.box.set(new P());\n" + 
40930
		"	             ^^^^^^^\n" + 
40930
		"	             ^^^^^^^\n" + 
40931
		"Access to enclosing constructor A.P() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
40931
		"Access to enclosing constructor A.P() is emulated by a synthetic accessor method\n" + 
40932
		"----------\n");
40932
		"----------\n");
40933
}	
40933
}	
40934
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=209153 - variation
40934
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=209153 - variation
(-)src/org/eclipse/jdt/core/tests/compiler/regression/InnerEmulationTest.java (-20 / +20 lines)
Lines 144-150 Link Here
144
		"1. WARNING in A.java (at line 8)\n" + 
144
		"1. WARNING in A.java (at line 8)\n" + 
145
		"	super(getRunnable(), new B().toString()); \n" + 
145
		"	super(getRunnable(), new B().toString()); \n" + 
146
		"	                     ^^^^^^^\n" + 
146
		"	                     ^^^^^^^\n" + 
147
		"Access to enclosing constructor A.B() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
147
		"Access to enclosing constructor A.B() is emulated by a synthetic accessor method\n" + 
148
		"----------\n" + 
148
		"----------\n" + 
149
		"2. ERROR in A.java (at line 8)\n" + 
149
		"2. ERROR in A.java (at line 8)\n" + 
150
		"	super(getRunnable(), new B().toString()); \n" + 
150
		"	super(getRunnable(), new B().toString()); \n" + 
Lines 1464-1470 Link Here
1464
		"2. WARNING in p1\\A2.java (at line 18)\n" + 
1464
		"2. WARNING in p1\\A2.java (at line 18)\n" + 
1465
		"	private class C extends B {	\n" + 
1465
		"	private class C extends B {	\n" + 
1466
		"	              ^\n" + 
1466
		"	              ^\n" + 
1467
		"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
1467
		"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method\n" + 
1468
		"----------\n" + 
1468
		"----------\n" + 
1469
		"3. ERROR in p1\\A2.java (at line 20)\n" + 
1469
		"3. ERROR in p1\\A2.java (at line 20)\n" + 
1470
		"	(new D.E(null, null, null, new F(get()) {}) {}).execute();	\n" + 
1470
		"	(new D.E(null, null, null, new F(get()) {}) {}).execute();	\n" + 
Lines 1552-1558 Link Here
1552
		"2. WARNING in p1\\A2.java (at line 18)\n" + 
1552
		"2. WARNING in p1\\A2.java (at line 18)\n" + 
1553
		"	private class C extends B {	\n" + 
1553
		"	private class C extends B {	\n" + 
1554
		"	              ^\n" + 
1554
		"	              ^\n" + 
1555
		"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
1555
		"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method\n" + 
1556
		"----------\n" + 
1556
		"----------\n" + 
1557
		"3. ERROR in p1\\A2.java (at line 20)\n" + 
1557
		"3. ERROR in p1\\A2.java (at line 20)\n" + 
1558
		"	(new D.E(null, null, null, new F(get()) {})).execute();	\n" + 
1558
		"	(new D.E(null, null, null, new F(get()) {})).execute();	\n" + 
Lines 2978-2988 Link Here
2978
				"} 	\n"
2978
				"} 	\n"
2979
			},
2979
			},
2980
			"----------\n" + 
2980
			"----------\n" + 
2981
			"1. WARNING in X.java (at line 7)\n" +
2981
			"1. WARNING in X.java (at line 7)\n" + 
2982
			"	class B extends X {	\n" +
2982
			"	class B extends X {	\n" + 
2983
			"	      ^\n" +
2983
			"	      ^\n" + 
2984
			"The type B is never used locally\n" +
2984
			"The type B is never used locally\n" + 
2985
			"----------\n" +
2985
			"----------\n" + 
2986
			"2. WARNING in X.java (at line 8)\n" + 
2986
			"2. WARNING in X.java (at line 8)\n" + 
2987
			"	B() {	\n" + 
2987
			"	B() {	\n" + 
2988
			"	^^^\n" + 
2988
			"	^^^\n" + 
Lines 2997-3003 Link Here
2997
			"4. WARNING in X.java (at line 9)\n" + 
2997
			"4. WARNING in X.java (at line 9)\n" + 
2998
			"	super(new A(){	\n" + 
2998
			"	super(new A(){	\n" + 
2999
			"	          ^^^\n" + 
2999
			"	          ^^^\n" + 
3000
			"Access to enclosing constructor A() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
3000
			"Access to enclosing constructor A() is emulated by a synthetic accessor method\n" + 
3001
			"----------\n");
3001
			"----------\n");
3002
		return;
3002
		return;
3003
	}
3003
	}
Lines 3118-3128 Link Here
3118
				"} 	\n"
3118
				"} 	\n"
3119
			},
3119
			},
3120
			"----------\n" + 
3120
			"----------\n" + 
3121
			"1. WARNING in X.java (at line 7)\n" +
3121
			"1. WARNING in X.java (at line 7)\n" + 
3122
			"	class B extends X {	\n" +
3122
			"	class B extends X {	\n" + 
3123
			"	      ^\n" +
3123
			"	      ^\n" + 
3124
			"The type B is never used locally\n" +
3124
			"The type B is never used locally\n" + 
3125
			"----------\n" +
3125
			"----------\n" + 
3126
			"2. WARNING in X.java (at line 8)\n" + 
3126
			"2. WARNING in X.java (at line 8)\n" + 
3127
			"	B() {	\n" + 
3127
			"	B() {	\n" + 
3128
			"	^^^\n" + 
3128
			"	^^^\n" + 
Lines 3138-3144 Link Here
3138
			"4. WARNING in X.java (at line 9)\n" + 
3138
			"4. WARNING in X.java (at line 9)\n" + 
3139
			"	super(new A(){	\n" + 
3139
			"	super(new A(){	\n" + 
3140
			"	          ^^^\n" + 
3140
			"	          ^^^\n" + 
3141
			"Access to enclosing constructor A() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
3141
			"Access to enclosing constructor A() is emulated by a synthetic accessor method\n" + 
3142
			"----------\n" + 
3142
			"----------\n" + 
3143
			"5. WARNING in X.java (at line 10)\n" + 
3143
			"5. WARNING in X.java (at line 10)\n" + 
3144
			"	void foo() { System.out.println(X.this);	} \n" + 
3144
			"	void foo() { System.out.println(X.this);	} \n" + 
Lines 5634-5640 Link Here
5634
		"1. WARNING in X.java (at line 5)\n" + 
5634
		"1. WARNING in X.java (at line 5)\n" + 
5635
		"	private class Y extends A {\n" + 
5635
		"	private class Y extends A {\n" + 
5636
		"	              ^\n" + 
5636
		"	              ^\n" + 
5637
		"Access to enclosing constructor X.A() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5637
		"Access to enclosing constructor X.A() is emulated by a synthetic accessor method\n" + 
5638
		"----------\n" + 
5638
		"----------\n" + 
5639
		"2. ERROR in X.java (at line 9)\n" + 
5639
		"2. ERROR in X.java (at line 9)\n" + 
5640
		"	class Y extends Zork {}\n" + 
5640
		"	class Y extends Zork {}\n" + 
Lines 6319-6330 Link Here
6319
				"4. WARNING in X.java (at line 16)\n" + 
6319
				"4. WARNING in X.java (at line 16)\n" + 
6320
				"	System.out.println(X.this.var1.trim());\n" + 
6320
				"	System.out.println(X.this.var1.trim());\n" + 
6321
				"	                          ^^^^\n" + 
6321
				"	                          ^^^^\n" + 
6322
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
6322
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + 
6323
				"----------\n" + 
6323
				"----------\n" + 
6324
				"5. WARNING in X.java (at line 17)\n" + 
6324
				"5. WARNING in X.java (at line 17)\n" + 
6325
				"	System.out.println(var1.trim());\n" + 
6325
				"	System.out.println(var1.trim());\n" + 
6326
				"	                   ^^^^\n" + 
6326
				"	                   ^^^^\n" + 
6327
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
6327
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + 
6328
				"----------\n" + 
6328
				"----------\n" + 
6329
				"6. ERROR in X.java (at line 17)\n" + 
6329
				"6. ERROR in X.java (at line 17)\n" + 
6330
				"	System.out.println(var1.trim());\n" + 
6330
				"	System.out.println(var1.trim());\n" + 
Lines 6407-6418 Link Here
6407
				"3. WARNING in X.java (at line 16)\n" + 
6407
				"3. WARNING in X.java (at line 16)\n" + 
6408
				"	System.out.println(X.this.var1.trim());\n" + 
6408
				"	System.out.println(X.this.var1.trim());\n" + 
6409
				"	                          ^^^^\n" + 
6409
				"	                          ^^^^\n" + 
6410
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
6410
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + 
6411
				"----------\n" + 
6411
				"----------\n" + 
6412
				"4. WARNING in X.java (at line 17)\n" + 
6412
				"4. WARNING in X.java (at line 17)\n" + 
6413
				"	System.out.println(var1.trim());\n" + 
6413
				"	System.out.println(var1.trim());\n" + 
6414
				"	                   ^^^^\n" + 
6414
				"	                   ^^^^\n" + 
6415
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
6415
				"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + 
6416
				"----------\n" + 
6416
				"----------\n" + 
6417
				"5. ERROR in X.java (at line 17)\n" + 
6417
				"5. ERROR in X.java (at line 17)\n" + 
6418
				"	System.out.println(var1.trim());\n" + 
6418
				"	System.out.println(var1.trim());\n" + 
(-)src/org/eclipse/jdt/core/tests/compiler/regression/AmbiguousMethodTest.java (-2 / +2 lines)
Lines 1865-1871 Link Here
1865
		"1. WARNING in X.java (at line 9)\n" + 
1865
		"1. WARNING in X.java (at line 9)\n" + 
1866
		"	bar(new Z());\n" + 
1866
		"	bar(new Z());\n" + 
1867
		"	    ^^^^^^^\n" + 
1867
		"	    ^^^^^^^\n" + 
1868
		"Access to enclosing constructor X.Z() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
1868
		"Access to enclosing constructor X.Z() is emulated by a synthetic accessor method\n" + 
1869
		"----------\n" + 
1869
		"----------\n" + 
1870
		"2. WARNING in X.java (at line 13)\n" + 
1870
		"2. WARNING in X.java (at line 13)\n" + 
1871
		"	private static final class Z implements I {\n" + 
1871
		"	private static final class Z implements I {\n" + 
Lines 1931-1937 Link Here
1931
		"1. WARNING in X.java (at line 9)\n" + 
1931
		"1. WARNING in X.java (at line 9)\n" + 
1932
		"	bar(new Z(){});\n" + 
1932
		"	bar(new Z(){});\n" + 
1933
		"	        ^^^\n" + 
1933
		"	        ^^^\n" + 
1934
		"Access to enclosing constructor X.Z() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
1934
		"Access to enclosing constructor X.Z() is emulated by a synthetic accessor method\n" + 
1935
		"----------\n" + 
1935
		"----------\n" + 
1936
		"2. WARNING in X.java (at line 13)\n" + 
1936
		"2. WARNING in X.java (at line 13)\n" + 
1937
		"	private static class Z implements I {\n" + 
1937
		"	private static class Z implements I {\n" + 
(-)src/org/eclipse/jdt/core/tests/compiler/regression/LookupTest.java (-3 / +2 lines)
Lines 689-702 Link Here
689
		"1. WARNING in p1\\A.java (at line 6)\n" + 
689
		"1. WARNING in p1\\A.java (at line 6)\n" + 
690
		"	sth.rating = \"m\";						\n" + 
690
		"	sth.rating = \"m\";						\n" + 
691
		"	    ^^^^^^\n" + 
691
		"	    ^^^^^^\n" + 
692
		"Write access to enclosing field A.rating is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
692
		"Write access to enclosing field A.rating is emulated by a synthetic accessor method\n" + 
693
		"----------\n" + 
693
		"----------\n" + 
694
		"2. ERROR in p1\\A.java (at line 13)\n" + 
694
		"2. ERROR in p1\\A.java (at line 13)\n" + 
695
		"	System.out.println(foo.rating + bar.other);	\n" + 
695
		"	System.out.println(foo.rating + bar.other);	\n" + 
696
		"	                                ^^^^^^^^^\n" + 
696
		"	                                ^^^^^^^^^\n" + 
697
		"bar.other cannot be resolved or is not a field\n" + 
697
		"bar.other cannot be resolved or is not a field\n" + 
698
		"----------\n"
698
		"----------\n");
699
	);
700
}
699
}
701
/**
700
/**
702
 * member class
701
 * member class
(-)src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_3.java (-1 / +1 lines)
Lines 3189-3195 Link Here
3189
		"1. WARNING in I.java (at line 3)\n" + 
3189
		"1. WARNING in I.java (at line 3)\n" + 
3190
		"	Object bar(I i) throws CloneNotSupportedException { return i.clone(); }\n" + 
3190
		"	Object bar(I i) throws CloneNotSupportedException { return i.clone(); }\n" + 
3191
		"	                                                           ^^^^^^^^^\n" + 
3191
		"	                                                           ^^^^^^^^^\n" + 
3192
		"Access to enclosing method clone() from the type Object is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
3192
		"Access to enclosing method clone() from the type Object is emulated by a synthetic accessor method\n" + 
3193
		"----------\n"
3193
		"----------\n"
3194
		// no compile errors but generates ClassFormatError if run
3194
		// no compile errors but generates ClassFormatError if run
3195
	);
3195
	);
(-)compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties (-4 / +4 lines)
Lines 160-169 Link Here
160
187 = Unreachable catch block for {0}. It is already handled by the catch block for {1}
160
187 = Unreachable catch block for {0}. It is already handled by the catch block for {1}
161
188 = Empty control-flow statement
161
188 = Empty control-flow statement
162
189 = Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally
162
189 = Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally
163
190 = Read access to enclosing field {0}.{1} is emulated by a synthetic accessor method. Increasing its visibility will improve your performance
163
190 = Read access to enclosing field {0}.{1} is emulated by a synthetic accessor method
164
191 = Write access to enclosing field {0}.{1} is emulated by a synthetic accessor method. Increasing its visibility will improve your performance
164
191 = Write access to enclosing field {0}.{1} is emulated by a synthetic accessor method
165
192 = Access to enclosing method {1}({2}) from the type {0} is emulated by a synthetic accessor method. Increasing its visibility will improve your performance
165
192 = Access to enclosing method {1}({2}) from the type {0} is emulated by a synthetic accessor method
166
193 = Access to enclosing constructor {0}({1}) is emulated by a synthetic accessor method. Increasing its visibility will improve your performance
166
193 = Access to enclosing constructor {0}({1}) is emulated by a synthetic accessor method
167
194 = Switch case may be entered by falling through previous case
167
194 = Switch case may be entered by falling through previous case
168
195 = The method {1} is defined in an inherited type and an enclosing scope
168
195 = The method {1} is defined in an inherited type and an enclosing scope
169
196 = The field {0} is defined in an inherited type and an enclosing scope 
169
196 = The field {0} is defined in an inherited type and an enclosing scope 
(-)Eclipse Java Tests Compiler/org/eclipse/jdt/tests/compiler/regression/InitializationTest.java (-8 / +8 lines)
Lines 5484-5490 Link Here
5484
		"2. WARNING in X.java (at line 5)\n" + 
5484
		"2. WARNING in X.java (at line 5)\n" + 
5485
		"	Object o1 = mObj;\n" + 
5485
		"	Object o1 = mObj;\n" + 
5486
		"	            ^^^^\n" + 
5486
		"	            ^^^^\n" + 
5487
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5487
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5488
		"----------\n" + 
5488
		"----------\n" + 
5489
		"3. ERROR in X.java (at line 5)\n" + 
5489
		"3. ERROR in X.java (at line 5)\n" + 
5490
		"	Object o1 = mObj;\n" + 
5490
		"	Object o1 = mObj;\n" + 
Lines 5499-5505 Link Here
5499
		"5. WARNING in X.java (at line 7)\n" + 
5499
		"5. WARNING in X.java (at line 7)\n" + 
5500
		"	Object o2 = mObj;\n" + 
5500
		"	Object o2 = mObj;\n" + 
5501
		"	            ^^^^\n" + 
5501
		"	            ^^^^\n" + 
5502
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5502
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5503
		"----------\n" + 
5503
		"----------\n" + 
5504
		"6. ERROR in X.java (at line 7)\n" + 
5504
		"6. ERROR in X.java (at line 7)\n" + 
5505
		"	Object o2 = mObj;\n" + 
5505
		"	Object o2 = mObj;\n" + 
Lines 5514-5520 Link Here
5514
		"8. WARNING in X.java (at line 9)\n" + 
5514
		"8. WARNING in X.java (at line 9)\n" + 
5515
		"	Object o3 = mObj;\n" + 
5515
		"	Object o3 = mObj;\n" + 
5516
		"	            ^^^^\n" + 
5516
		"	            ^^^^\n" + 
5517
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5517
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5518
		"----------\n");
5518
		"----------\n");
5519
}
5519
}
5520
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=203061 - variation
5520
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=203061 - variation
Lines 5549-5555 Link Here
5549
		"2. WARNING in X.java (at line 5)\n" + 
5549
		"2. WARNING in X.java (at line 5)\n" + 
5550
		"	Object o1 = mObj;\n" + 
5550
		"	Object o1 = mObj;\n" + 
5551
		"	            ^^^^\n" + 
5551
		"	            ^^^^\n" + 
5552
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5552
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5553
		"----------\n" + 
5553
		"----------\n" + 
5554
		"3. ERROR in X.java (at line 5)\n" + 
5554
		"3. ERROR in X.java (at line 5)\n" + 
5555
		"	Object o1 = mObj;\n" + 
5555
		"	Object o1 = mObj;\n" + 
Lines 5559-5565 Link Here
5559
		"4. WARNING in X.java (at line 6)\n" + 
5559
		"4. WARNING in X.java (at line 6)\n" + 
5560
		"	mObj = \"1\";\n" + 
5560
		"	mObj = \"1\";\n" + 
5561
		"	^^^^\n" + 
5561
		"	^^^^\n" + 
5562
		"Write access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5562
		"Write access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5563
		"----------\n" + 
5563
		"----------\n" + 
5564
		"5. ERROR in X.java (at line 6)\n" + 
5564
		"5. ERROR in X.java (at line 6)\n" + 
5565
		"	mObj = \"1\";\n" + 
5565
		"	mObj = \"1\";\n" + 
Lines 5574-5580 Link Here
5574
		"7. WARNING in X.java (at line 8)\n" + 
5574
		"7. WARNING in X.java (at line 8)\n" + 
5575
		"	Object o2 = mObj = \"2\";\n" + 
5575
		"	Object o2 = mObj = \"2\";\n" + 
5576
		"	            ^^^^\n" + 
5576
		"	            ^^^^\n" + 
5577
		"Write access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5577
		"Write access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5578
		"----------\n" + 
5578
		"----------\n" + 
5579
		"8. ERROR in X.java (at line 8)\n" + 
5579
		"8. ERROR in X.java (at line 8)\n" + 
5580
		"	Object o2 = mObj = \"2\";\n" + 
5580
		"	Object o2 = mObj = \"2\";\n" + 
Lines 5589-5600 Link Here
5589
		"10. WARNING in X.java (at line 10)\n" + 
5589
		"10. WARNING in X.java (at line 10)\n" + 
5590
		"	Object o3 = mObj;\n" + 
5590
		"	Object o3 = mObj;\n" + 
5591
		"	            ^^^^\n" + 
5591
		"	            ^^^^\n" + 
5592
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5592
		"Read access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5593
		"----------\n" + 
5593
		"----------\n" + 
5594
		"11. WARNING in X.java (at line 11)\n" + 
5594
		"11. WARNING in X.java (at line 11)\n" + 
5595
		"	mObj = \"3\";\n" + 
5595
		"	mObj = \"3\";\n" + 
5596
		"	^^^^\n" + 
5596
		"	^^^^\n" + 
5597
		"Write access to enclosing field X.mObj is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5597
		"Write access to enclosing field X.mObj is emulated by a synthetic accessor method\n" + 
5598
		"----------\n" + 
5598
		"----------\n" + 
5599
		"12. ERROR in X.java (at line 11)\n" + 
5599
		"12. ERROR in X.java (at line 11)\n" + 
5600
		"	mObj = \"3\";\n" + 
5600
		"	mObj = \"3\";\n" + 
(-)Eclipse Java Tests Compiler/org/eclipse/jdt/tests/compiler/regression/NegativeTest.java (-104 / +98 lines)
Lines 5335-5341 Link Here
5335
		"1. WARNING in p\\AA.java (at line 6)\n" + 
5335
		"1. WARNING in p\\AA.java (at line 6)\n" + 
5336
		"	foo();\n" + 
5336
		"	foo();\n" + 
5337
		"	^^^^^\n" + 
5337
		"	^^^^^\n" + 
5338
		"Access to enclosing method foo() from the type AA is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5338
		"Access to enclosing method foo() from the type AA is emulated by a synthetic accessor method\n" + 
5339
		"----------\n" + 
5339
		"----------\n" + 
5340
		"2. ERROR in p\\AA.java (at line 11)\n" + 
5340
		"2. ERROR in p\\AA.java (at line 11)\n" + 
5341
		"	case getLabel().RIGHT: {\n" + 
5341
		"	case getLabel().RIGHT: {\n" + 
Lines 5346-5353 Link Here
5346
		"	case getLabel().RIGHT: {\n" + 
5346
		"	case getLabel().RIGHT: {\n" + 
5347
		"	                ^^^^^\n" + 
5347
		"	                ^^^^^\n" + 
5348
		"The static field Label.RIGHT should be accessed in a static way\n" + 
5348
		"The static field Label.RIGHT should be accessed in a static way\n" + 
5349
		"----------\n"
5349
		"----------\n");
5350
	);
5351
}
5350
}
5352
public void test146() {
5351
public void test146() {
5353
	this.runNegativeTest(
5352
	this.runNegativeTest(
Lines 5968-5979 Link Here
5968
		"3. WARNING in p\\ADB.java (at line 23)\n" + 
5967
		"3. WARNING in p\\ADB.java (at line 23)\n" + 
5969
		"	int l = M2.h() + M2.h;\n" + 
5968
		"	int l = M2.h() + M2.h;\n" + 
5970
		"	        ^^^^^^\n" + 
5969
		"	        ^^^^^^\n" + 
5971
		"Access to enclosing method h() from the type ADB.M2 is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5970
		"Access to enclosing method h() from the type ADB.M2 is emulated by a synthetic accessor method\n" + 
5972
		"----------\n" + 
5971
		"----------\n" + 
5973
		"4. WARNING in p\\ADB.java (at line 23)\n" + 
5972
		"4. WARNING in p\\ADB.java (at line 23)\n" + 
5974
		"	int l = M2.h() + M2.h;\n" + 
5973
		"	int l = M2.h() + M2.h;\n" + 
5975
		"	                    ^\n" + 
5974
		"	                    ^\n" + 
5976
		"Read access to enclosing field ADB.M2.h is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
5975
		"Read access to enclosing field ADB.M2.h is emulated by a synthetic accessor method\n" + 
5977
		"----------\n");
5976
		"----------\n");
5978
}
5977
}
5979
public void test165() {
5978
public void test165() {
Lines 8335-8341 Link Here
8335
	"1. WARNING in p\\r2\\helper\\SomeTest.java (at line 6)\n" + 
8334
	"1. WARNING in p\\r2\\helper\\SomeTest.java (at line 6)\n" + 
8336
	"	assertEquals(false);\n" + 
8335
	"	assertEquals(false);\n" + 
8337
	"	^^^^^^^^^^^^^^^^^^^\n" + 
8336
	"	^^^^^^^^^^^^^^^^^^^\n" + 
8338
	"Access to enclosing method assertEquals(boolean) from the type Test is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
8337
	"Access to enclosing method assertEquals(boolean) from the type Test is emulated by a synthetic accessor method\n" + 
8339
	"----------\n" + 
8338
	"----------\n" + 
8340
	"----------\n" + 
8339
	"----------\n" + 
8341
	"1. WARNING in p\\r2\\helper\\SubA.java (at line 3)\n" + 
8340
	"1. WARNING in p\\r2\\helper\\SubA.java (at line 3)\n" + 
Lines 8356-8362 Link Here
8356
	"4. WARNING in p\\r2\\helper\\SubA.java (at line 11)\n" + 
8355
	"4. WARNING in p\\r2\\helper\\SubA.java (at line 11)\n" + 
8357
	"	int x = i; };        // bad since from inside inner\n" + 
8356
	"	int x = i; };        // bad since from inside inner\n" + 
8358
	"	        ^\n" + 
8357
	"	        ^\n" + 
8359
	"Read access to enclosing field A.i is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
8358
	"Read access to enclosing field A.i is emulated by a synthetic accessor method\n" + 
8360
	"----------\n" + 
8359
	"----------\n" + 
8361
	"----------\n" + 
8360
	"----------\n" + 
8362
	"1. WARNING in p\\r2\\helper2\\SubSubA2.java (at line 3)\n" + 
8361
	"1. WARNING in p\\r2\\helper2\\SubSubA2.java (at line 3)\n" + 
Lines 9533-9541 Link Here
9533
		"2. WARNING in p\\ba\\SubMain.java (at line 15)\n" + 
9532
		"2. WARNING in p\\ba\\SubMain.java (at line 15)\n" + 
9534
		"	System.out.println(SubMain.this.nonStaticProtectedMethod());\n" + 
9533
		"	System.out.println(SubMain.this.nonStaticProtectedMethod());\n" + 
9535
		"	                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9534
		"	                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9536
		"Access to enclosing method nonStaticProtectedMethod() from the type Main is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
9535
		"Access to enclosing method nonStaticProtectedMethod() from the type Main is emulated by a synthetic accessor method\n" + 
9537
		"----------\n"
9536
		"----------\n");
9538
	);
9539
}
9537
}
9540
public void test242() {
9538
public void test242() {
9541
	this.runNegativeTest(
9539
	this.runNegativeTest(
Lines 9584-9607 Link Here
9584
		"2. WARNING in p\\ca\\SubMain.java (at line 12)\n" + 
9582
		"2. WARNING in p\\ca\\SubMain.java (at line 12)\n" + 
9585
		"	new SubMain().nonStaticProtectedMethod(4); // succeeds with javac 1.3.1 and 1.4\n" + 
9583
		"	new SubMain().nonStaticProtectedMethod(4); // succeeds with javac 1.3.1 and 1.4\n" + 
9586
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9584
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9587
		"Access to enclosing method nonStaticProtectedMethod(int) from the type Main is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
9585
		"Access to enclosing method nonStaticProtectedMethod(int) from the type Main is emulated by a synthetic accessor method\n" + 
9588
		"----------\n" + 
9586
		"----------\n" + 
9589
		"3. WARNING in p\\ca\\SubMain.java (at line 13)\n" + 
9587
		"3. WARNING in p\\ca\\SubMain.java (at line 13)\n" + 
9590
		"	SubMain.this.nonStaticProtectedMethod(5); // succeeds with javac 1.3.1 and 1.4\n" + 
9588
		"	SubMain.this.nonStaticProtectedMethod(5); // succeeds with javac 1.3.1 and 1.4\n" + 
9591
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9589
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9592
		"Access to enclosing method nonStaticProtectedMethod(int) from the type Main is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
9590
		"Access to enclosing method nonStaticProtectedMethod(int) from the type Main is emulated by a synthetic accessor method\n" + 
9593
		"----------\n" + 
9591
		"----------\n" + 
9594
		"4. WARNING in p\\ca\\SubMain.java (at line 14)\n" + 
9592
		"4. WARNING in p\\ca\\SubMain.java (at line 14)\n" + 
9595
		"	nonStaticProtectedMethod(6); // is NOW allowed with JDK 1.3\n" + 
9593
		"	nonStaticProtectedMethod(6); // is NOW allowed with JDK 1.3\n" + 
9596
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9594
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9597
		"Access to enclosing method nonStaticProtectedMethod(int) from the type Main is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
9595
		"Access to enclosing method nonStaticProtectedMethod(int) from the type Main is emulated by a synthetic accessor method\n" + 
9598
		"----------\n" + 
9596
		"----------\n" + 
9599
		"5. ERROR in p\\ca\\SubMain.java (at line 20)\n" + 
9597
		"5. ERROR in p\\ca\\SubMain.java (at line 20)\n" + 
9600
		"	{ m.nonStaticProtectedMethod(7); } // fails\n" + 
9598
		"	{ m.nonStaticProtectedMethod(7); } // fails\n" + 
9601
		"	    ^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9599
		"	    ^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
9602
		"The method nonStaticProtectedMethod(int) from the type Main is not visible\n" + 
9600
		"The method nonStaticProtectedMethod(int) from the type Main is not visible\n" + 
9603
		"----------\n"
9601
		"----------\n");
9604
	);
9605
}
9602
}
9606
public void test243() {
9603
public void test243() {
9607
	this.runNegativeTest(
9604
	this.runNegativeTest(
Lines 12149-12165 Link Here
12149
		"1. WARNING in X.java (at line 3)\n" + 
12146
		"1. WARNING in X.java (at line 3)\n" + 
12150
		"	{ X.this.foo();	}	\n" + 
12147
		"	{ X.this.foo();	}	\n" + 
12151
		"	  ^^^^^^^^^^^^\n" + 
12148
		"	  ^^^^^^^^^^^^\n" + 
12152
		"Access to enclosing method foo() from the type X is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12149
		"Access to enclosing method foo() from the type X is emulated by a synthetic accessor method\n" + 
12153
		"----------\n" + 
12150
		"----------\n" + 
12154
		"2. WARNING in X.java (at line 4)\n" + 
12151
		"2. WARNING in X.java (at line 4)\n" + 
12155
		"	{ X.this.f++;	}	\n" + 
12152
		"	{ X.this.f++;	}	\n" + 
12156
		"	         ^\n" + 
12153
		"	         ^\n" + 
12157
		"Read access to enclosing field X.f is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12154
		"Read access to enclosing field X.f is emulated by a synthetic accessor method\n" + 
12158
		"----------\n" + 
12155
		"----------\n" + 
12159
		"3. WARNING in X.java (at line 4)\n" + 
12156
		"3. WARNING in X.java (at line 4)\n" + 
12160
		"	{ X.this.f++;	}	\n" + 
12157
		"	{ X.this.f++;	}	\n" + 
12161
		"	         ^\n" + 
12158
		"	         ^\n" + 
12162
		"Write access to enclosing field X.f is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12159
		"Write access to enclosing field X.f is emulated by a synthetic accessor method\n" + 
12163
		"----------\n" + 
12160
		"----------\n" + 
12164
		"4. ERROR in X.java (at line 10)\n" + 
12161
		"4. ERROR in X.java (at line 10)\n" + 
12165
		"	int y = new X().f;	\n" + 
12162
		"	int y = new X().f;	\n" + 
Lines 12557-12563 Link Here
12557
		"3. WARNING in X.java (at line 6)\n" + 
12554
		"3. WARNING in X.java (at line 6)\n" + 
12558
		"	foo(2);	\n" + 
12555
		"	foo(2);	\n" + 
12559
		"	^^^^^^\n" + 
12556
		"	^^^^^^\n" + 
12560
		"Access to enclosing method foo(int) from the type X is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12557
		"Access to enclosing method foo(int) from the type X is emulated by a synthetic accessor method\n" + 
12561
		"----------\n");
12558
		"----------\n");
12562
}
12559
}
12563
// check private unused detection
12560
// check private unused detection
Lines 12594-12600 Link Here
12594
		"3. WARNING in X.java (at line 7)\n" + 
12591
		"3. WARNING in X.java (at line 7)\n" + 
12595
		"	return foo(2);	\n" + 
12592
		"	return foo(2);	\n" + 
12596
		"	       ^^^^^^\n" + 
12593
		"	       ^^^^^^\n" + 
12597
		"Access to enclosing method foo(int) from the type X.Member is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12594
		"Access to enclosing method foo(int) from the type X.Member is emulated by a synthetic accessor method\n" + 
12598
		"----------\n");
12595
		"----------\n");
12599
}
12596
}
12600
// check private unused detection
12597
// check private unused detection
Lines 12623-12634 Link Here
12623
		"2. WARNING in X.java (at line 5)\n" + 
12620
		"2. WARNING in X.java (at line 5)\n" + 
12624
		"	field = 0;	\n" + 
12621
		"	field = 0;	\n" + 
12625
		"	^^^^^\n" + 
12622
		"	^^^^^\n" + 
12626
		"Write access to enclosing field X.field is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12623
		"Write access to enclosing field X.field is emulated by a synthetic accessor method\n" + 
12627
		"----------\n" + 
12624
		"----------\n" + 
12628
		"3. WARNING in X.java (at line 6)\n" + 
12625
		"3. WARNING in X.java (at line 6)\n" + 
12629
		"	return field;	\n" + 
12626
		"	return field;	\n" + 
12630
		"	       ^^^^^\n" + 
12627
		"	       ^^^^^\n" + 
12631
		"Read access to enclosing field X.field is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12628
		"Read access to enclosing field X.field is emulated by a synthetic accessor method\n" + 
12632
		"----------\n");
12629
		"----------\n");
12633
}
12630
}
12634
// check detection of local variable hiding field
12631
// check detection of local variable hiding field
Lines 12980-12991 Link Here
12980
		"3. WARNING in X.java (at line 8)\n" + 
12977
		"3. WARNING in X.java (at line 8)\n" + 
12981
		"	someX.nextX = null;	\n" + 
12978
		"	someX.nextX = null;	\n" + 
12982
		"	^^^^^\n" + 
12979
		"	^^^^^\n" + 
12983
		"Read access to enclosing field X.someX is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12980
		"Read access to enclosing field X.someX is emulated by a synthetic accessor method\n" + 
12984
		"----------\n" + 
12981
		"----------\n" + 
12985
		"4. WARNING in X.java (at line 8)\n" + 
12982
		"4. WARNING in X.java (at line 8)\n" + 
12986
		"	someX.nextX = null;	\n" + 
12983
		"	someX.nextX = null;	\n" + 
12987
		"	      ^^^^^\n" + 
12984
		"	      ^^^^^\n" + 
12988
		"Write access to enclosing field X.nextX is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" + 
12985
		"Write access to enclosing field X.nextX is emulated by a synthetic accessor method\n" + 
12989
		"----------\n");
12986
		"----------\n");
12990
}
12987
}
12991
// invalid type expression (extra parenthesis)
12988
// invalid type expression (extra parenthesis)
Lines 16036-16084 Link Here
16036
			"	}\n" +
16033
			"	}\n" +
16037
			"} \n" 
16034
			"} \n" 
16038
		}, 
16035
		}, 
16039
		"----------\n" +
16036
		"----------\n" + 
16040
		"1. WARNING in X.java (at line 2)\n" +
16037
		"1. WARNING in X.java (at line 2)\n" + 
16041
		"	private class M { \n" +
16038
		"	private class M { \n" + 
16042
		"	              ^\n" +
16039
		"	              ^\n" + 
16043
		"The type X.M is never used locally\n" +
16040
		"The type X.M is never used locally\n" + 
16044
		"----------\n" +
16041
		"----------\n" + 
16045
		"2. WARNING in X.java (at line 3)\n" +
16042
		"2. WARNING in X.java (at line 3)\n" + 
16046
		"	private class Member1 {} \n" +
16043
		"	private class Member1 {} \n" + 
16047
		"	              ^^^^^^^\n" +
16044
		"	              ^^^^^^^\n" + 
16048
		"The type X.M.Member1 is never used locally\n" +
16045
		"The type X.M.Member1 is never used locally\n" + 
16049
		"----------\n" +
16046
		"----------\n" + 
16050
		"3. WARNING in X.java (at line 4)\n" +
16047
		"3. WARNING in X.java (at line 4)\n" + 
16051
		"	private class Member2 extends M { \n" +
16048
		"	private class Member2 extends M { \n" + 
16052
		"	              ^^^^^^^\n" +
16049
		"	              ^^^^^^^\n" + 
16053
		"The type X.M.Member2 is never used locally\n" +
16050
		"The type X.M.Member2 is never used locally\n" + 
16054
		"----------\n" +
16051
		"----------\n" + 
16055
		"4. WARNING in X.java (at line 4)\n" +
16052
		"4. WARNING in X.java (at line 4)\n" + 
16056
		"	private class Member2 extends M { \n" +
16053
		"	private class Member2 extends M { \n" + 
16057
		"	              ^^^^^^^\n" +
16054
		"	              ^^^^^^^\n" + 
16058
		"Access to enclosing constructor X.M() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" +
16055
		"Access to enclosing constructor X.M() is emulated by a synthetic accessor method\n" + 
16059
		"----------\n" +
16056
		"----------\n" + 
16060
		"5. WARNING in X.java (at line 8)\n" +
16057
		"5. WARNING in X.java (at line 8)\n" + 
16061
		"	class Local1 {} \n" +
16058
		"	class Local1 {} \n" + 
16062
		"	      ^^^^^^\n" +
16059
		"	      ^^^^^^\n" + 
16063
		"The type Local1 is never used locally\n" +
16060
		"The type Local1 is never used locally\n" + 
16064
		"----------\n" +
16061
		"----------\n" + 
16065
		"6. WARNING in X.java (at line 9)\n" +
16062
		"6. WARNING in X.java (at line 9)\n" + 
16066
		"	class Local2 { \n" +
16063
		"	class Local2 { \n" + 
16067
		"	      ^^^^^^\n" +
16064
		"	      ^^^^^^\n" + 
16068
		"The type Local2 is never used locally\n" +
16065
		"The type Local2 is never used locally\n" + 
16069
		"----------\n" +
16066
		"----------\n" + 
16070
		"7. WARNING in X.java (at line 11)\n" +
16067
		"7. WARNING in X.java (at line 11)\n" + 
16071
		"	class LMember2 extends Local2 { \n" +
16068
		"	class LMember2 extends Local2 { \n" + 
16072
		"	      ^^^^^^^^\n" +
16069
		"	      ^^^^^^^^\n" + 
16073
		"The type Local2.LMember2 is never used locally\n" +
16070
		"The type Local2.LMember2 is never used locally\n" + 
16074
		"----------\n" +
16071
		"----------\n" + 
16075
		"8. WARNING in X.java (at line 13)\n" +
16072
		"8. WARNING in X.java (at line 13)\n" + 
16076
		"	LMember1 m1;\n" +
16073
		"	LMember1 m1;\n" + 
16077
		"	         ^^\n" +
16074
		"	         ^^\n" + 
16078
		"The field Local2.m1 is never read locally\n" +
16075
		"The field Local2.m1 is never read locally\n" + 
16079
		"----------\n" 
16076
		"----------\n");
16080
16081
	);
16082
16077
16083
}
16078
}
16084
16079
Lines 16106-16148 Link Here
16106
			"	}\n" +
16101
			"	}\n" +
16107
			"} \n" 
16102
			"} \n" 
16108
		}, 
16103
		}, 
16109
		"----------\n" +
16104
		"----------\n" + 
16110
		"1. WARNING in X.java (at line 2)\n" +
16105
		"1. WARNING in X.java (at line 2)\n" + 
16111
		"	private class M { \n" +
16106
		"	private class M { \n" + 
16112
		"	              ^\n" +
16107
		"	              ^\n" + 
16113
		"The type X.M is never used locally\n" +
16108
		"The type X.M is never used locally\n" + 
16114
		"----------\n" +
16109
		"----------\n" + 
16115
		"2. WARNING in X.java (at line 3)\n" +
16110
		"2. WARNING in X.java (at line 3)\n" + 
16116
		"	private class Member1 {} \n" +
16111
		"	private class Member1 {} \n" + 
16117
		"	              ^^^^^^^\n" +
16112
		"	              ^^^^^^^\n" + 
16118
		"The type X.M.Member1 is never used locally\n" +
16113
		"The type X.M.Member1 is never used locally\n" + 
16119
		"----------\n" +
16114
		"----------\n" + 
16120
		"3. WARNING in X.java (at line 4)\n" +
16115
		"3. WARNING in X.java (at line 4)\n" + 
16121
		"	private class Member2 extends M { \n" +
16116
		"	private class Member2 extends M { \n" + 
16122
		"	              ^^^^^^^\n" +
16117
		"	              ^^^^^^^\n" + 
16123
		"Access to enclosing constructor X.M() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance\n" +
16118
		"Access to enclosing constructor X.M() is emulated by a synthetic accessor method\n" + 
16124
		"----------\n" +
16119
		"----------\n" + 
16125
		"4. WARNING in X.java (at line 9)\n" +
16120
		"4. WARNING in X.java (at line 9)\n" + 
16126
		"	class Local1 {} \n" +
16121
		"	class Local1 {} \n" + 
16127
		"	      ^^^^^^\n" +
16122
		"	      ^^^^^^\n" + 
16128
		"The type Local1 is never used locally\n" +
16123
		"The type Local1 is never used locally\n" + 
16129
		"----------\n" +
16124
		"----------\n" + 
16130
		"5. WARNING in X.java (at line 10)\n" +
16125
		"5. WARNING in X.java (at line 10)\n" + 
16131
		"	class Local2 { \n" +
16126
		"	class Local2 { \n" + 
16132
		"	      ^^^^^^\n" +
16127
		"	      ^^^^^^\n" + 
16133
		"The type Local2 is never used locally\n" +
16128
		"The type Local2 is never used locally\n" + 
16134
		"----------\n" +
16129
		"----------\n" + 
16135
		"6. WARNING in X.java (at line 11)\n" +
16130
		"6. WARNING in X.java (at line 11)\n" + 
16136
		"	class LMember1 {} \n" +
16131
		"	class LMember1 {} \n" + 
16137
		"	      ^^^^^^^^\n" +
16132
		"	      ^^^^^^^^\n" + 
16138
		"The type Local2.LMember1 is never used locally\n" +
16133
		"The type Local2.LMember1 is never used locally\n" + 
16139
		"----------\n" +
16134
		"----------\n" + 
16140
		"7. WARNING in X.java (at line 12)\n" +
16135
		"7. WARNING in X.java (at line 12)\n" + 
16141
		"	class LMember2 extends Local2 { \n" +
16136
		"	class LMember2 extends Local2 { \n" + 
16142
		"	      ^^^^^^^^\n" +
16137
		"	      ^^^^^^^^\n" + 
16143
		"The type Local2.LMember2 is never used locally\n" +
16138
		"The type Local2.LMember2 is never used locally\n" + 
16144
		"----------\n"
16139
		"----------\n");
16145
	);
16146
16140
16147
}
16141
}
16148
16142

Return to bug 235004