Summary: | [1.5] NPE in Scope.minimalErasedCandidate | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Johan Walles <johan.walles> | ||||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | major | ||||||||
Priority: | P3 | CC: | cimballi | ||||||
Version: | 3.0 | ||||||||
Target Milestone: | 3.1 M2 | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Johan Walles
2004-08-25 08:59:41 EDT
Created attachment 14171 [details]
File in which this error is triggered
Can you please provide a complete testcase ? Yours is missing some referenced types. Please reopen once info is available. Intended to be closed as REMIND Created attachment 14645 [details]
Manually constructed testcase with missing types
Please reopen once info is available. Unforturnately I didn't take any snapshot of my code at the time of this error, so I don't have that information anymore. In case you can't resolve this with the information currently in this bug report, you'll have to close this an WONTFIX. Can't you reproduce it anymore ? Nope. I haven't upgraded to anything newer than M1, so the bug is still there though. It's just that whatever it was in my code that triggered it isn't there anymore. I'm getting this in the source workspace from b64 on the type EventListenerList. Reproduced with EventListenerList. Fixed by adding a null check. Situation can occur when interface is matched against Object. Simpler testcase: public class X { static <T> T foo(T t1, T t2){ return t1; } public static void main(String[] args) { IX s = null; IX t = foo(new Object(), s); } } interface IX {} Added regression test: GenericTypeTest#test307 Verified in I200409231635. *** Bug 75540 has been marked as a duplicate of this bug. *** |