Summary: | [1.5][compiler] Type hierarchy with generics fails with NPE | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eric Inman <eric-inman> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | mlists |
Version: | 3.2 | ||
Target Milestone: | 3.1.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Eric Inman
2005-09-02 23:57:02 EDT
It appears that the problem is due to the pre-initialization of SourceTypeBinding.superInterfaces not occurring early enough. It appears that a 3.2M1 modification was to pre-initialize this field to NoSuperInterfaces at the beginning of connectSuperInterfaces() in order to guard against it being referenced in a recursive call before its ultimate value was determined. In this example, however, it is referenced from a recursive call to connectSuperclass(). A fix therefore seems to be to do this pre-initialization in connectSuperclass(). This modification at least solves the problem for this particular example. Added TypeHierarchyTests testGeneric8 Released in 3.1.1 stream. But did not make it into 3.2M2 build in time - will show up in subsequent builds. Verified for 3.1.1 using M20050923-1430. Released into HEAD |