Summary: | [1.5][dom] type bindings for raw List and List<E> have same key | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | martinae |
Version: | 3.1 | ||
Target Milestone: | 3.1 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Markus Keller
2004-11-04 04:51:20 EST
Changed the binding key of parameterized type to include the type parameters. Added regression test ASTConverter15Tests#test061() Nope, with the code in HEAD and in I20041109-0800, both versions still have the same key (which is 'java.util/List<E:java.lang.Object,>' now). I don't get it. There must be some randomness involved here. I have this CU: package test; import java.util.List; public class A { List li; } The key of the type binding for 'List' (in field declaration) is 'java.util/List<E:java.lang.Object,>'. However, in this CU, the key of the same type binding is 'java.util/List': package test; import java.util.List; public class B { List li; void test(List list, Integer integer) { list.add(integer); } } Raising severity to major. Sorry about that Markus. I changed the key for parameterized types and generic types, but this changed the raw type key as well, when it should have stayed the same. Fixed in HEAD. Added regression test ASTConverter15Test#test0066. Verified for 3.1 M4 using build I200412140800. Using ASTView 1.0.2. |