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 33445

Summary: Rename action throws exception ( on properties file )
Product: utilities Reporter: pfelenda <pfelenda>
Component: PropertiesAssignee: Jan Stola <jstola>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: -S1S-   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 16389    
Bug Blocks:    
Attachments: Add attach

Description pfelenda 2003-05-06 19:12:01 UTC
RC2, jdk1.4.1_02

Steps to reproduce :
1) Create new properties file
2) Add Locale e.g. cs_CZ
3) Remove this locale
4) Try rename your properties file
-> Exception appeared 
(java.lang.IllegalStateException: Resource Bundle:
Should never happen -> name1_cs_CZ doesn't start
with name2)
Comment 1 pfelenda 2003-05-06 19:12:37 UTC
Created attachment 10235 [details]
Add attach
Comment 2 _ pkuzel 2003-05-12 15:24:10 UTC
DataNode.setName(XXX, true) if not probably handled properly.

Again openide.loaders will die, Delaying till global refactoring.
Comment 3 Marian Petras 2004-03-04 16:48:11 UTC
Accepted.

Since the code has been changed because of fix of bug #36788
("Locales' node names?"), a different stack trace is displayed now:

java.lang.AssertionError
        at org.n.m.properties.Util.getLocaleSuffix(line 132)
        at org.n.m.properties.PropertiesLocaleNode.getName(line 116)
        at org.openide.nodes.FilterNode.getName(line 411)
[catch] at org.openide.explorer.view.VisualizerNode.run(line 322)
        ...
        (AWT-event-queue thread)
Comment 4 Jan Stola 2004-06-07 14:08:57 UTC
Fixed.
Comment 5 pfelenda 2004-08-16 15:43:16 UTC
Verified in 4.0 beta 1.