Summary: | [1.5] Cast required where no cast should be required | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Stefan Matthias Aust <sma> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Stefan Matthias Aust
2004-05-27 06:09:35 EDT
This raises a warning and shouldn't. Probably related to the above problem. class Q2 { void e2(N n) { Iterator<N> i = n.a.iterator(); } } This only occurs in editor, not when building. The reason is that the JavaModel the editor relies upon is not fully aware yet of generics. I added recently support for type parameters of type, to get basic things working, but did not change type names to type signatures. Therefore, the model doesn't record the fact the signature of field 'a' is List<N>, and simply considers it to be raw type 'List'. Hence, it fools the compiler. When building though, the compiler is directly using the source/binaries, and thus doesn't get in trouble. Support added in JavaModel (SourceTypeConverter is now able to recreate parameterized type references). Fixed |