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 98270 - Different include/exclude sets of a source tree do not trigger rescan
Summary: Different include/exclude sets of a source tree do not trigger rescan
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks: 97168 98266
  Show dependency tree
 
Reported: 2007-03-19 22:46 UTC by Jesse Glick
Modified: 2009-11-02 10:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-03-19 22:46:04 UTC
070319. If you open the JDK util project and let it scan, it will (I think) scan
just the Collections-related classes and then stop. Fine. Now open jarzip.
Nothing new is scanned, even though this project has a new set of includes. For
example, if you use Go to Type, JarFile is not offered (except from the
bootstrap JDK), but HashMap is.

Possible behaviors:

(0) Do nothing, as now, i.e. this is WONTFIX. If you wanted to work on >1
project, you're out of luck: close project #1, shut down the IDE, delete
var/cache/, restart, open project #2.

(1) Detect the changed includes/excludes, throw out the old cache, and rescan.
OK if you just want to switch from one project to the next, which is likely.

(2) Scan those packages/classes which were not scanned before, i.e. extend the
existing cache as needed.
Comment 1 Tomas Zezula 2007-03-22 10:51:22 UTC
In the point (0) it should be enough to close the first project. The problem is
that RepositoryUpdater maintains the set of already scanned roots and the root
of the old project is the same as a root of the new project => the
RepositoryUpdater do not scan it again. For now I don't know any fast way how to
find out that the root has different excludes, maybe ClassPath.SOURCE(oldRoot)
!= ClassPath.SOURCE (newRoot) will work. If it works it will behave like point (2).
Comment 2 Max Sauer 2007-09-05 14:05:23 UTC
Old TM. -> 6.0.
Comment 3 Jiri Prox 2008-04-11 00:52:56 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 4 Tomas Zezula 2008-08-26 09:01:19 UTC
Two projects on the same source root are not supported, but on the other side the implementation described by Jesse in point (1) should be doable and may 
help.
Comment 5 David Strupl 2009-03-31 15:52:45 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 6 Quality Engineering 2009-11-02 10:58:15 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX