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 76297 - JMManager needs APIs to reset repository
Summary: JMManager needs APIs to reset repository
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 17:17 UTC by Isao Yanagimachi
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed JMManager API for resetting repository (1.11 KB, patch)
2006-05-12 17:18 UTC, Isao Yanagimachi
Details | Diff
updated patch (1.75 KB, text/xml)
2006-06-30 20:08 UTC, Isao Yanagimachi
Details
resubmitted patch withcorrect file type (1.75 KB, patch)
2006-08-08 14:01 UTC, Isao Yanagimachi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Isao Yanagimachi 2006-05-12 17:17:00 UTC
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
Comment 1 Isao Yanagimachi 2006-05-12 17:18:46 UTC
Created attachment 30377 [details]
Proposed JMManager API for resetting repository
Comment 2 Jan Becicka 2006-06-29 16:34:25 UTC
Pavel is looking at it.
Comment 3 Pavel Flaska 2006-06-30 14:56:46 UTC
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.
Comment 4 Isao Yanagimachi 2006-06-30 18:16:07 UTC
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.
Comment 5 Isao Yanagimachi 2006-06-30 20:08:26 UTC
Created attachment 31557 [details]
updated patch
Comment 6 Pavel Flaska 2006-08-08 13:14:13 UTC
Isao, I'm not able to view updated patch.
Comment 7 Isao Yanagimachi 2006-08-08 14:01:08 UTC
Created attachment 32649 [details]
resubmitted patch withcorrect file type
Comment 8 Isao Yanagimachi 2006-08-08 14:04:46 UTC
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
Comment 9 Pavel Flaska 2006-08-08 14:16:36 UTC
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);
Comment 10 Isao Yanagimachi 2006-08-08 14:18:56 UTC
>can I replace this line? 

>For example with this line:
>Logger.getLogger("global").log(Level.WARNING, "Rescanning " + fail);

Yes, Thank you.
Comment 11 Pavel Flaska 2006-08-09 10:15:49 UTC
Applied in trunk.
Comment 12 Pavel Flaska 2006-08-09 13:54:30 UTC
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
Comment 13 Quality Engineering 2007-09-20 10:10:45 UTC
Reorganization of java component