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.
My Look returns a List of fileobjects for the contents of the jar (from method getChildObjects). When the jar is rebuilt refreshChildren is called and from it getChildObjects. If the later returns a list with different fileObjects ContextIDExistsException is thrown from projects (see attachement). FileObjects are taken from a JarFileSystem created around the new jar. The previously returned FileObjects are taken from a different instance of JarFileSystem. Note, that it works for one FileObject (root) that changes. It fails if there is one FO at first, then I add one more and want to refresh to the two, or there are two FOs and one is removed. In both these cases, old-children and new-children overlap (might be important). (By overlapping, I mean that they have the same pathname, the filesystems they come from are different in any case )
Created attachment 9470 [details] stack trace of the exception
Created attachment 10691 [details] attaching the layer file with EP registration
sorry, the last attachment was meant for a different bug ;-) ignore it please
I think I understand the problem, but don't know the solution yet :-(. It would probably need some better defined cooperation with JarFileSystem/JarPackager. Definitely it is not the problem of looks.
I'm ready to cooperate :-)
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped.
Marking issue as VERIFIED --->
---> CLOSED