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 31578

Summary: Problem with NbBundle after disable/enable form module
Product: platform Reporter: mslama <mslama>
Component: -- Other --Assignee: Jesse Glick <jglick>
Status: VERIFIED FIXED    
Severity: blocker CC: jglick, pnejedly
Priority: P2 Keywords: PERFORMANCE
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 13847    
Attachments: Part of log

Description mslama 2003-02-28 15:23:44 UTC
When I disable/enable form module NbBundle is not
able to return localized keys from form module.
Not sure where to assign. It is annoying because
IDE displays incorrect display name for GUI
Editing workspace and mode Form. Workaround is to
restart IDE.
Comment 1 mslama 2003-02-28 15:26:55 UTC
Created attachment 9221 [details]
Part of log
Comment 2 Jesse Glick 2003-02-28 15:43:49 UTC
NbBundle.getBundleFast caches misses as well as hits. Unfortunately
the system class loader can add modules without changing identity,
causing cached misses to be inaccurate. Fix is probably to just delete
the miss caching. I think it should be OK because individual locale
variants of *.properties are not cached, only the merged bundle - and
this should rarely be a cache miss since you expect at least the base
bundle to exist.
Comment 3 Jesse Glick 2003-03-10 21:49:59 UTC
Generally, was refusing to acknowledge existence of bundles provided
by a module if this was tested once with the module off and then again
with the module turned on (without restarting). Could have broader
impact than just window system display names, so safest to fix it now.
Anyway was a regression caused by fix of issue #13847, which generally
merits a P2.
Comment 4 Jesse Glick 2003-03-11 19:02:02 UTC
committed     Up-To-Date  1.52       
openide/src/org/openide/util/NbBundle.java
Comment 5 Jesse Glick 2003-03-11 21:06:48 UTC
Merged.

committed     Up-To-Date  1.51.6.1   
openide/src/org/openide/util/NbBundle.java
Comment 6 Marian Mirilovic 2003-04-08 17:50:08 UTC
verified in [nb3.5](200304072350)