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.
Summary: | Test UseNbBundleMessagesTest.addToExistingMultiple fails. | ||
---|---|---|---|
Product: | apisupport | Reporter: | Martin Entlicher <mentlicher> |
Component: | Refactoring | Assignee: | Martin Kozeny <mkozeny> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | jlahoda, jrechtacek, ovrabec, ralphbenjamin |
Priority: | P1 | Keywords: | TEST |
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://deadlock.netbeans.org/job/NB-Core-Build/330/testReport/org.netbeans.modules.apisupport.hints/UseNbBundleMessagesTest/addToExistingMultiple/ | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Entlicher
2013-08-30 16:56:05 UTC
honzo, can this be caused by one of your changes in java.hints? http://deadlock.netbeans.org/job/NB-Core-Build/327/changes Appears to be caused by: http://hg.netbeans.org/jet-main/rev/234bbe22a0de I'll look into it, but might take time - if you need hotfix, then maybe using "flag1" instead of "flag 1" in the test example would be acceptable? diff -r 72e73121ff2a apisupport.refactoring/test/unit/src/org/netbeans/modules/apisupport/hints/UseNbBundleMessagesTest.java --- a/apisupport.refactoring/test/unit/src/org/netbeans/modules/apisupport/hints/UseNbBundleMessagesTest.java Fri Aug 30 10:49:57 2013 +0200 +++ b/apisupport.refactoring/test/unit/src/org/netbeans/modules/apisupport/hints/UseNbBundleMessagesTest.java Fri Aug 30 21:23:40 2013 +0200 @@ -403,7 +403,7 @@ "class Test {\n" + " @Messages({\"one=first\", \"two=second\"})\n" + " String m(boolean flag1, boolean flag2) {\n" + - " return flag 1? one() : flag2 ? two() : org.openide.util.NbBundle.getMessage(Test.class, \"three\");\n" + + " return flag1 ? one() : flag2 ? two() : org.openide.util.NbBundle.getMessage(Test.class, \"three\");\n" + " }\n" + "}\n", false). input("test/Bundle.properties", "three=third\n", false). @@ -417,7 +417,7 @@ "class Test {\n" + " @Messages({\"one=first\", \"two=second\", \"three=third\"})\n" + " String m(boolean flag1, boolean flag2) {\n" + - " return flag 1? one() : flag2 ? two() : three();\n" + + " return flag1 ? one() : flag2 ? two() : three();\n" + " }\n" + "}\n"); } Hotfix is ok, thanks. |