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 69813 - Classpath rescan even if JAR hasn't been modified
Summary: Classpath rescan even if JAR hasn't been modified
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-03 11:50 UTC by _ gtzabari
Modified: 2007-09-26 09:14 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 _ gtzabari 2005-12-03 11:50:22 UTC
dev build 200512011936

On startup, Netbeans rescans the classpath for changes and iterates through the
contents of JAR files on the classpath even if they have not been modified since
the last time it scanned the classpath.

I am expecting Netbeans to use the file last-modified timestamp to determine
whether it should iterate through its contents. This would be much faster than
the current approach.

It could be that I am misinterpreting what Netbeans is doing and it is deciding
to always rescan any Library Manager entry that has a Sources value set, though
if that is the case I think that can be improved as well. For example, I've got
Hibernate mounted as a JAR in the classpath tab and its sources in the Sources
tab. I am expecting Hibernate to only use the Sources entries at debug time to
open files. I am not expecting it to rescan these files at startup. If there is
a reason this must be done please let me know what I missed ;)
Comment 1 Tomas Hurka 2005-12-07 14:37:22 UTC
Netbeans _uses_ the file last-modified timestamp to determine whether it should iterate through contents 
of the jar file. rt.jar and src.zip from JDK are most visible examples of this strategy.
Comment 2 _ gtzabari 2005-12-07 15:57:24 UTC
Any idea why it rescans the classpath of libraries that have both a JAR and
source-files mounted? I was under the impression that source-files are only used
during debugging, and do not actually affect the classpath.
Comment 3 Quality Engineering 2007-09-20 11:57:29 UTC
Reorganization of java component