Summary: | [1.5] Error while using parametrized static factory | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Karsten Becker <java> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | eclipse.org |
Version: | 3.1 | ||
Target Milestone: | 3.1 M3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Karsten Becker
2004-10-14 16:54:19 EDT
I also would expect the following to work: Test<String> res=Test.<String>createObject("Hallo"); Resolved along with fix for bug 77052. Added regression test: GenericTypeTest#test340. *** This bug has been marked as a duplicate of 77052 *** Actually, this wasn't a dup. Fixed (generic static method of raw type remains generic) *** Bug 77142 has been marked as a duplicate of this bug. *** I tried this out in N20041028, and the compiler no longer gives an error, but it still gives a warning, which javac doesn't: Type safety: The method createObject(String) belongs to the raw type Test. References to generic type Test<T> should be parameterized The warning disappeared today with my latest changes. Verified for 3.1M3 with build I200411040100 |