Summary: | [search] NullPointerException when searching for type references | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Peter Hendriks <phendriks> | ||||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | major | ||||||||
Priority: | P3 | CC: | Olivier_Thomann, satyam.kandula, srikanth_sankaran | ||||||
Version: | 3.5 | ||||||||
Target Milestone: | 3.6 M4 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows Vista | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Peter Hendriks
2009-08-31 15:31:47 EDT
The MatchLocator does protect itself when the createHandle(...) method returns null in certain circumstances but not always. Typically it does not when the type references is found in the type arguments generic method, but it does when the reference is found in the method body and this method fails to find the handler of a method in an anonymous type... I'll fix the NPE in this case, but the Search Engine will still fails to report type references inside binary type anonymous (see bug 151389)... Created attachment 153434 [details] Proposed patch This was finally not the same origin than bug 151389. In this case, the problem came from the fact that similar matches were not used while creating the method handle... Created attachment 153437 [details]
Jar file for the added test
This jar file needs to be put in workspace/JavaSearchBugs/lib folder of the org.eclipse.jdt.core.tests.model project in order to pass the added test JavaSearchBugTests.testBug288174()...
Released for 3.6M4 in HEAD stream. Verified for 3.6M4 using Build id: I20091207-1800 |