Summary: | NPE navigating references using links | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rafael Chaves <eclipse> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | carej, lynne_kues, Michael.Valenta |
Version: | 2.1 | ||
Target Milestone: | 2.1.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Rafael Chaves
2003-03-28 13:42:05 EST
I could reproduce it with the standard SDK: 1 - open a new workspace with i200303272130 2 - open CVS repository exploring 3 - checkout projects: core.resources, core.runtime, core.resources.win32, core.boot and xerces 4 - close all perspectives 5 - exit Eclipse 6 - open Eclipse - Resources perspective will be opened 7 - using the resource navigator, open org.eclipse.core.resources/src/org/eclipse/resources/IProject.java 8 - holding ctrl while hovering, open declaration for IProgressMonitor 9 - do the same thing for other type identifiers - eventually identifiers won't be underlined anymore, and lots of NPEs will occur. Reproduced. Can still workaround a little more against the JIT bug: replacing ... unitScope.recordReference(currentPackage.compoundName, name); Binding binding = currentPackage.getTypeOrPackage(name); ... with the following (2 lines swapped) ... Binding binding = currentPackage.getTypeOrPackage(name); unitScope.recordReference(currentPackage.compoundName, name); ... makes it work !? Still the code is equivalent. Released change for integration. Actually, the line swapping doesn't seem to solve it all the time (!?), but moving the variable declaration right beside the unitScope local declaration seems to do the trick. What seems to be the offending pattern is the local declaration next to its usage (JIT is likely trying to inline the local value). Backported to 2.1 maintenance stream. Fixed in 2.2 stream as well. *** Bug 36497 has been marked as a duplicate of this bug. *** *** Bug 37426 has been marked as a duplicate of this bug. *** Vewrified. Verified for 3.0M1. *** Bug 42503 has been marked as a duplicate of this bug. *** |