harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-925) Test failures in TEXT on ru_RU locale
Date Wed, 26 Jul 2006 08:17:16 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-925?page=all ]

Alexey A. Ivanov updated HARMONY-925:
-------------------------------------

    Attachment: ChoiceFormat.patch

Fixes a bug in ChoiceFormat.applyPattern(). The pattern must use point as decimal separator
no matter the decimal separator in the default locale.
This just makes it use NumberFormat created for en_US locale to parse the pattern.

> 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
>         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

        

Mime
View raw message