Summary: | [1.5][compiler] Type mismatch errors on identical types; code compiles with javac | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Trevor Robinson <trevor> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | Karice_McIntyre, Olivier_Thomann | ||||
Version: | 3.3.1 | ||||||
Target Milestone: | 3.4 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Trevor Robinson
2008-02-24 16:15:00 EST
Karice - is the BSD licensed source code ok for me to look at ? Got legal clearance to look at source code. Simplified testcase: public class X<Token, NodeType> { class Table { State<Token> s; Table() { this.s = new State<Token>(); } class State<T> { } } } This should compile with no error. Problem comes from ParameterizedSingleTypeReference which fails to convert X<Token,NodeType>.Table into a parameterized type. Added GenericTypeTest#test1293-1294 Patch combined with https://bugs.eclipse.org/bugs/attachment.cgi?id=90846 Also added GenericTypeTest#test1296-1298 Released for 3.4M6. Fixed Released fix in 3.3.x maintenance branch (post 3.3.2) Verified for 3.4M6 using I20080324-1300. |