This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[20050223] How to reproduces: 1) Open NetBeans module project in module suite. No sources root is assigned to platform. 2) Try in editor ALT + SHIFT + O on element from platform in module source. No element was located. 3) Add zip file with sources to platform sources. 4) Try in editor ALT + SHIFT + O on element from platform in module source. No element was located. 5) restart IDE. 6) Try in editor ALT + SHIFT + O on element from platform in module source. Element was located.
Not sure where is the problem. Will have to recall the code. Hopefully for u1.
Reproducible in 5.0 or only in 5.0u1?
The same scenario is reproducible in nb50.
So, mark accordingly...
GlobalSourceForBinaryImpl does not implement its (add|remove)ChangeListener methods. So GlobalPathRegistry's returns old results from its cache.
I fixed the problem for zipped source roots. The second problem will be probably somewhere around BinaryEntry.getSourceLocation() and its caller(s)? Anyway review is appreciated. universe/NbPlatform.java; 1.32 -> 1.33; test/unit/universe/NbPlatformTest.java; 1.17 -> 1.18; queries/GlobalSourceForBinaryImpl.java; 1.7 -> 1.8; test/unit/queries/GlobalSourceForBinaryImplTest.java; 1.4 -> 1.5;
*** Issue 73986 has been marked as a duplicate of this issue. ***
I'm not sure what I meant by 'second problem' but it works for me for zipped sources as well for directories. Zajo reopen if you find any problems. Dik.
Please use rather WORKSFORME next time.
> Please use rather WORKSFORME next time. No. It was fixed. See comments above.