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.

Bug 115872 - Code completion/navigation database is easily confused
Summary: Code completion/navigation database is easily confused
Status: RESOLVED DUPLICATE of bug 115654
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-18 16:01 UTC by jessholle
Modified: 2007-09-19 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Zipped free-form project directory (28.07 KB, application/octet-stream)
2007-09-18 16:04 UTC, jessholle
Details
NetBeans Library file (745 bytes, application/octet-stream)
2007-09-18 16:05 UTC, jessholle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jessholle 2007-09-18 16:01:17 UTC
I have numerous free-form projects that work fine in NetBeans 5.5 but whose classes do not show up for code completion
and navigation purposes in NetBeans 6 beta 1.  This is true even from within the same project and package!

After some investigation it would appear that at least one cause of the issue in libraries I automatically create for
each free-form project to work around issue #57656.  I can remove these libraries in NetBeans 6, *but* there is nothing
wrong with these libraries and the fact that they cause such severe issues points to some flakiness in NetBeans 6's
code-completion/navigation mechanisms.

I will attach a sample free-form project and library.  In this project, NetBeans cannot navigate (via go-to-declaration)
or find (via go-to-type) wt.jmx.remote.forwarder.LoggingForwarder even from wt.jmx.remote.protocol.RMIConnectorServer. 
[No, this example is not same package, just same project -- the same-package project examples were larger.]
Comment 1 jessholle 2007-09-18 16:04:32 UTC
Created attachment 48999 [details]
Zipped free-form project directory
Comment 2 jessholle 2007-09-18 16:05:09 UTC
Created attachment 49000 [details]
NetBeans Library file
Comment 3 jessholle 2007-09-18 16:08:09 UTC
To clarify, the issue occurs when the library in question resides in NetBeans' library directory.  If it is removed and
NetBeans is restarted, then code completion and navigation work fine for this project.

I'm experiencing a *lot* of issues in code completion and navigation.  It would be good to clear up this one (I'll try
deleting all such libraries from NB 6 for now, but a code fix is necessary to really clear this up) to figure out
whether this is the underlying cause of all my issues or if there are others as well.
Comment 4 jessholle 2007-09-18 22:20:52 UTC
I deleted all the libraries I'd created to work around issue #57656.

This allowed "go-to-type" to work as expected.

Unfortunately, "go-to-declaration" from the editor completely fails between projects.  I'm re-opening issue #57656!
Comment 5 jessholle 2007-09-18 22:40:46 UTC
To be clear the combination issue #57656 and issue #115872 make NetBeans 6 useless to me until one -- or hopefully both
-- of these issues are addressed.
Comment 6 Jan Lahoda 2007-09-19 10:20:25 UTC
From the attachments, it seems to be caused by the same root cause as issue #115654.

*** This issue has been marked as a duplicate of 115654 ***