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.
While developing a module for NetBeans 5.0/5.5, I found an issue with JMManager. As of now, there is no way to reset the repository unless you restart the IDE. This feature needs to be added because JMManager caches the FileObjects and uses the cached objects as a key to map to the corresponding repository. FileObjects come from the URLMapper which maps the URI to the FileObject. However,this mapping can change since any module is allowed to add its own URLMapper. If the mapping changes, the cached FileObject mapping in JMMananger needs to be cleared. Thus I propose the following patch Add JMManager into the open API list (if not already there). Add a new method for resetting the repository. I have included patches against 5.5. I marked this as P2 priority because it is very important to us. Thanks for your consideration. Isao Yanagimachi HP OpenVMS Engineering
Created attachment 30377 [details] Proposed JMManager API for resetting repository
Pavel is looking at it.
I looked to the patch and seems correct to me. If I understood it correctly, the method will be called just from reporter's module. Patch will not affect standard 5.5 release.
Yes, the method is only called from our module. During our testing, we have found we need to make a couple of additional changes in the same method. We will provide a patch for those changes now. Thanks! Isao Yanagimachi HP OpenVMS Engineering.
Created attachment 31557 [details] updated patch
Isao, I'm not able to view updated patch.
Created attachment 32649 [details] resubmitted patch withcorrect file type
Somehow the mime type of the patch file became XML. I resubmitted the same patch file with the correct mime type. I am sorry for any inconvenience this may have caused you. /Isao
Thanks, now it is correct. I will try it and will commit it soon. One thing has to be changed yet - there shouldn't be any System.err and System.out in release, can I replace this line? For example with this line: Logger.getLogger("global").log(Level.WARNING, "Rescanning " + fail);
>can I replace this line? >For example with this line: >Logger.getLogger("global").log(Level.WARNING, "Rescanning " + fail); Yes, Thank you.
Applied in trunk.
Merged to release55. Checking in JMManager.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v <-- JMManager.java new revision: 1.118.2.4.2.3; previous revision: 1.118.2.4.2.2 done
Reorganization of java component