Summary: | [1.5] NullPointerException in compiler | ||
---|---|---|---|
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-04-17 06:47:01 EDT
Reproduced. Problem occurs when trying to retrieve superclass of parameterized List<T> ref (during ref info recording). The superclass of generic type: List is null. This is a legite scenario, as interfaces have no superclass. Fixed ParameterizedTypeBinding by not attempting substitution when no superclass is intended. Fixed Simplified test case: interface List<T> { List<T> foo(); } class ArrayList<T> implements List<T> { public List<T> foo() { List<T> lt = this; lt.bar(); return this; } } Added GenericTypeTest#test131. |