You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/07/26 12:15:15 UTC

[jira] Commented: (HARMONY-925) Test failures in TEXT on ru_RU locale

    [ http://issues.apache.org/jira/browse/HARMONY-925?page=comments#action_12423602 ] 
            
Alexey A. Ivanov commented on HARMONY-925:
------------------------------------------

Something went wrong with the patch. This part has not been applied:
@@ -80,7 +81,7 @@
        List<String> formats = new ArrayList<String>();
        int length = template.length(), limitCount = 0, index = 0;
        StringBuffer buffer = new StringBuffer();
-       NumberFormat format = NumberFormat.getInstance();
+       NumberFormat format = NumberFormat.getInstance(Locale.US);
        ParsePosition position = new ParsePosition(0);
        while (true) {
            index = skipWhitespace(template, index);


The only change I see is "import Locale" added.

> Test failures in TEXT on ru_RU locale
> -------------------------------------
>
>                 Key: HARMONY-925
>                 URL: http://issues.apache.org/jira/browse/HARMONY-925
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Tim Ellison
>         Assigned To: Paulex Yang
>         Attachments: ChoiceFormat.patch
>
>
> Reported on the dev list by Alexei Zakharov:
> DecimalFormatTest:
> ================
> Testcase: test_parseLjava_lang_String_Ljava_text_ParsePosition took 0 sec
> FAILED
> null
> junit.framework.AssertionFailedError
> at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_parseLjava_lang_String_Ljava_text_ParsePosition(DecimalFormatTest.java:66)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
> Testcase: test_setDecimalSeparatorAlwaysShownZ took 0 sec
> FAILED
> Wrong set result expected:<....> but was:<...,>
> junit.framework.ComparisonFailure: Wrong set result expected:<....>
> but was:<...,>
> at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setDecimalSeparatorAlwaysShownZ(DecimalFormatTest.java:1361)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
> Testcase: test_setMaximumFractionDigitsI took 0 sec
> FAILED
> Wrong maximum expected:<.......> but was:<...,...>
> junit.framework.ComparisonFailure: Wrong maximum expected:<.......>
> but was:<...,...>
> at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMaximumFractionDigitsI(DecimalFormatTest.java:1410)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
> Testcase: test_setMinimumFractionDigitsI took 0,016 sec
> FAILED
> Wrong minimum expected:<.......> but was:<...,...>
> junit.framework.ComparisonFailure: Wrong minimum expected:<.......>
> but was:<...,...>
> at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinimumFractionDigitsI(DecimalFormatTest.java:1436)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
> Testcase: test_setMinimumIntegerDigitsI took 0 sec
> FAILED
> Incorrect integer expected:<.......> but was:<...,...>
> junit.framework.ComparisonFailure: Incorrect integer
> expected:<.......> but was:<...,...>
> at org.apache.harmony.text.tests.java.text.DecimalFormatTest.test_setMinimumIntegerDigitsI(DecimalFormatTest.java:1452)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
> ChoiceFormatTest:
> ===============
> Testcase: test_toPattern took 0,016 sec
> Caused an ERROR
> null
> java.lang.IllegalArgumentException
> at java.text.ChoiceFormat.applyPattern(ChoiceFormat.java:126)
> at java.text.ChoiceFormat.<init>(ChoiceFormat.java:65)
> at org.apache.harmony.text.tests.java.text.ChoiceFormatTest.test_toPattern(ChoiceFormatTest.java:421)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira