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

(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java (-5 / +12 lines)
Lines 32-38 Link Here
32
	// All specified tests which does not belong to the class are skipped...
32
	// All specified tests which does not belong to the class are skipped...
33
	static {
33
	static {
34
//		TESTS_NAMES = new String[] { "test0788" };
34
//		TESTS_NAMES = new String[] { "test0788" };
35
//		TESTS_NUMBERS = new int[] { 1054 };
35
//		TESTS_NUMBERS = new int[] { 744 };
36
//		TESTS_RANGE = new int[] { 1097, -1 };
36
//		TESTS_RANGE = new int[] { 1097, -1 };
37
	}
37
	}
38
	public static Test suite() {
38
	public static Test suite() {
Lines 23116-23126 Link Here
23116
			"\n" + 
23116
			"\n" + 
23117
			"import java.io.*;\n" + 
23117
			"import java.io.*;\n" + 
23118
			"\n" + 
23118
			"\n" + 
23119
			"public abstract class X<K1, V1> extends HashMap<K1, V1> {\n" + 
23119
			"class Super<U, V> {\n" +
23120
			"	static class Entry<U,V> {\n" +
23121
			"		Entry(int i, U u, V v, Entry<U,V> entry) {}\n" + 
23122
			"		void recordAccess(Super<U,V> s) {\n" + 
23123
			"		}\n" +
23124
			"	}\n" +
23125
			"}\n"+
23126
			"public abstract class X<K1, V1> extends Super<K1, V1> {\n" + 
23120
			"\n" + 
23127
			"\n" + 
23121
			"	Entry<K1, V1> h;\n" + 
23128
			"	Entry<K1, V1> h;\n" + 
23122
			"\n" + 
23129
			"\n" + 
23123
			"	private static class Entry<K2, V2> extends HashMap.Entry<K2, V2> {\n" + 
23130
			"	private static class Entry<K2, V2> extends Super.Entry<K2, V2> {\n" + 
23124
			"\n" + 
23131
			"\n" + 
23125
			"		Entry() {\n" + 
23132
			"		Entry() {\n" + 
23126
			"			super(0, null, null, null);\n" + 
23133
			"			super(0, null, null, null);\n" + 
Lines 23129-23135 Link Here
23129
			"		void ab(@SuppressWarnings(\"unused\") Entry<K2, V2> e) {\n" + 
23136
			"		void ab(@SuppressWarnings(\"unused\") Entry<K2, V2> e) {\n" + 
23130
			"		}\n" + 
23137
			"		}\n" + 
23131
			"\n" + 
23138
			"\n" + 
23132
			"		@Override void recordAccess(HashMap<K2, V2> m) {\n" + 
23139
			"		@Override void recordAccess(Super<K2, V2> m) {\n" + 
23133
			"			X<K2, V2> x = (X<K2, V2>) m;\n" + 
23140
			"			X<K2, V2> x = (X<K2, V2>) m;\n" + 
23134
			"			ab(x.h);\n" + 
23141
			"			ab(x.h);\n" + 
23135
			"		}\n" + 
23142
			"		}\n" + 
Lines 23138-23144 Link Here
23138
			"}\n"
23145
			"}\n"
23139
		},
23146
		},
23140
		"----------\n" + 
23147
		"----------\n" + 
23141
		"1. ERROR in java\\util\\X.java (at line 23)\n" + 
23148
		"1. ERROR in java\\util\\X.java (at line 30)\n" + 
23142
		"	Zork z;\n" + 
23149
		"	Zork z;\n" + 
23143
		"	^^^^\n" + 
23150
		"	^^^^\n" + 
23144
		"Zork cannot be resolved to a type\n" + 
23151
		"Zork cannot be resolved to a type\n" + 

Return to bug 195526