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.
am running in ja locale, using pseudo localized nb, and am not localizing any .template file, which are not needed to be localized as per comments from development. But I can't create a junit test (am using a j2se project). see attached image with error msg. (running in another locale for which there was no pseudo localized junit jar, there was no error msg) I am wondering if the code is looking for the .template file in the localized jar ? or perhaps its something else. It happen if 1.3 or 1.4 is chosen, and once either 1.4 or 1.3 is chosen, and the popup as in the attached is shown, one cannot try to create another test in this project - one needs to start another project.
Created attachment 41559 [details] image
*** Issue 104769 has been marked as a duplicate of this issue. ***
"running in another locale for which there was no pseudo localized junit jar, there was no error msg" -- Ken, by "pseudo localized junit jar", you mean pseudo-localized JUnit module? If so, could you send me one (or attach it to this bug report)? Thanks.
Marian, could you look at this one fairly soon ? since it seems to be related to having localized jar (pseudo) present, want to make sure its not something that might require additional localized files in localized jar or some new/different values for a bundle file. I'll send a recent pseudo localized one in separate mail. ken.frank@sun.com
Confirmed on Linux (running on Intel), NetBeans build 070720, JDK 1.5.0_12. I was running on a US locale but NetBeans was started with switch "--locale ja". Just as I clicked on the OK button in the error dialogue, an exception message dialogue appeared: java.lang.NullPointerException at org.netbeans.modules.junit.CreateTestAction$1.run(CreateTestAction.java:218) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
This was caused by that the pseudo-localized .jar file had pseudo-localized some entries which should not be localized at all. In the default properties file, they look like this: # Test case & test suite templates for JUnit 3.x tests #NOI18N - this value is in .properties just to allow branding PROP_junit3_emptyTestClassTemplate=Templates/JUnit/EmptyJUnit3Test.java #NOI18N - this value is in .properties just to allow branding PROP_junit3_testClassTemplate=Templates/JUnit/SimpleJUnit3Test.java #NOI18N - this value is in .properties just to allow branding PROP_junit3_testSuiteTemplate=Templates/JUnit/JUnit3TestSuite.java The corresponding comments start with "NOI18N" which means the entries should not be modified during localization process. I mark this bug as INVALID.