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.
I run IDE with flag -J-Dorg.openide.util.NbBundle.DEBUG=true to see what bundles and keys are used inside IDE, but when I click Tools -> Options I got exception and nothing is opened.
Created attachment 8984 [details] exc stack trace
reassigned to explorer
This feature is esential for writing localizable tests.
Raising prio because this feaute is really needed to find out what bundles and keys are used for localized Strings. I cannot write localized tests until it's fixed. Or is there any other way how to get the information.
Milan, I know it's annoying for us , but it isn't P2 in my opinion. Lowering priority to P3. Jirka: please look at it , thanks in advance.
I've set it as P2 since I cannot write localized tests because of it.
The heart problem is in xml/tree-edit/TreeEditSettings. Some static fields parse string from bundle to Integer. And because with DEBUG switch are the strings from bundle appended with other information. It makes the string unparseable to Int. Petr, investigate any solution this problem. java.lang.NumberFormatException: For input string: "3 (91:43)" org.netbeans.modules.xml.tree.settings.TreeEditSettings.<clinit>(TreeEditSettings.java:43) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.netbeans.modules.xml.tree.settings.TreeEditSettingsBeanInfo.class$(TreeEditSettingsBeanInfo.java:27) at org.netbeans.modules.xml.tree.settings.TreeEditSettingsBeanInfo.<clinit>(TreeEditSettingsBeanInfo.java:33)
It's the bundle value contract that it must be parseable Integer. It's value used for branding not for localization.
This issue really blocks writing localized tests (originaly it was P2), without opening Tools -> Options I cannot see what is the bundle and the key. Why is the target milestone set to future? Is it dificult to fix it?
Your test is too intrusive and breaks the code. I can label the key by special comment i.e. #noi18n so you can avoid to mangle the value.
It seems as misundestanding. I want to write tests which uses localized Strings from bundles. I didn't write the module code so I do not know the bundles and the keys. Therefore I run IDE with mentioned switch to learn bundles and keys from number attached to each String in IDE. Then I use those Bundles and keys in tests. Those tests then runs on IDE without that switch. The switch is needed only to find out bundles and keys. Tests itself doesn't break anything. I think that the main problem is in handling of the switch.
The tree-edit module is not a part of the release any more. So can this be resolved as WONTFIX?
Closing as WONTFIX per previous comment.
v/c