Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 91061 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java (+19 lines)
Lines 16283-16286 Link Here
16283
			},
16283
			},
16284
			"complain about ambiguity");
16284
			"complain about ambiguity");
16285
	}	
16285
	}	
16286
    //https://bugs.eclipse.org/bugs/show_bug.cgi?id=91061
16287
    public void test575() {
16288
        this.runNegativeTest(
16289
            new String[] {
16290
                "X.java",
16291
                "public class X<T> {\n" + 
16292
                "   public interface I {\n" + 
16293
                "       void set(T t);\n" + 
16294
                "   }\n" + 
16295
                "}"
16296
            },
16297
    		"----------\n" + 
16298
    		"1. ERROR in X.java (at line 3)\n" + 
16299
    		"	void set(T t);\n" + 
16300
    		"	         ^\n" + 
16301
    		"Cannot make a static reference to the type parameter T\n" + 
16302
    		"----------\n");
16303
    }
16304
16286
}
16305
}

Return to bug 91061