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.
FileUtil.isArchiveFile() is unnecessarily slow because it reads a few bytes from the file beginning to verify that it is a ZIP/JAR archive. The semantics of FileUtil.isArchiveFile() perhaps will not be changed now so it has to be fixed in RepositoryUpdater.getRootURL.
Checking in Util.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/Util.java,v <-- Util.java new revision: 1.11; previous revision: 1.10 done Checking in RepositoryUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.38; previous revision: 1.37 done
This fix is wrong. See issue 64980. Checking in Util.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/Util.java,v <-- Util.java new revision: 1.13; previous revision: 1.12 done Checking in RepositoryUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.39; previous revision: 1.38 done
See description of issue 64980. Reopen this issue if you can provide better method than FileUtil.isArchiveFile().
Re-opening. Regardless of the FileUtil.isArchiveFile implementation, there seems to be enough information on the javacore side to make the querying more efficient.
Fixed. Checking in src/org/netbeans/modules/javacore/RepositoryUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.40; previous revision: 1.39 done
Reorganization of java component