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 - Rename action throws exception ( on properties file )
Summary: Rename action throws exception ( on properties file )
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: -S1S-
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on: 16389
Blocks:
  Show dependency tree
 
Reported: 2003-05-06 19:12 UTC by pfelenda
Modified: 2004-08-16 15:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Add attach (945 bytes, text/plain)
2003-05-06 19:12 UTC, pfelenda
Details

Note You need to log in before you can comment on or make changes to this bug.
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.