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.
The attached patch (applies to java and javadoc modules, very similar in both) sets the system name of any automatically mounted archives according to the location (resource path) of the XML file defining them. This is useful because then the system name is statically deterministic. For example, when mounting a Javadoc ZIP this way, it is possible to create a static URL (nbfs: and based on XML location) that will refer to some page in the Javadoc no matter where the ZIP is physically mounted from. #13337 makes it occasionally treat the contents of the archive (considered as a JarFileSystem) be invalid in the FileObject sense, but not reproducibly.
Created attachment 1802 [details] Suggested patch to java & javadoc modules
More news: now [dev jul 1] seems that sometimes the javadoc ZIP appears as a regular mount, i.e. visible and with the standard rather than javadoc capabilities. No idea why this would happen.
Now that #13337 is fixed, I verified that this patch works in the trunk.
Patch applied in the trunk: LibraryArchive.java 1.4 LibraryProcessor.java 1.9 JavadocArchive.java 1.3 JavadocDirectory.java 1.3 JavadocProcessor.java 1.5