You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/07/19 18:11:16 UTC

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

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


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

        

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

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-925?page=comments#action_12423606 ] 
            
Paulex Yang commented on HARMONY-925:
-------------------------------------

Oops, really sorry, I applied the patch and then reverted to compare the test results,  I must failed to appli it again but I didn't notice it. I commit the patch again at revision r425697,  please verify this time is fine.

> 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

        

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

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-925?page=all ]

Paulex Yang closed HARMONY-925.
-------------------------------


Verified by Alexey.

> 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, DecimalFormatTest.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

        

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

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-925?page=all ]

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

    Attachment: DecimalFormatTest.patch

This patch fixes tests in DecimalFormatTest. The US locale is passed when constructing DecimalFormat object, or DecimalFormatSymbols of the US locale, whichever applicable.
Also I have removed prefix 'failing' from test_setDecimalFormatSymbolsLjava_text_DecimalFormatSymbols. It should pass after applying patch for HARMONY-965.

> 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, DecimalFormatTest.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

        

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

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-925?page=comments#action_12423767 ] 
            
Paulex Yang commented on HARMONY-925:
-------------------------------------

Alexey, the new patch applied at revision r425959 with patch for HARMONY-965, please verify the problem is fully resolved as you expected, thank you very much for the enhancement.

> 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, DecimalFormatTest.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

        

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

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-925?page=all ]

Paulex Yang reassigned HARMONY-925:
-----------------------------------

    Assignee: Paulex Yang

> 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

        

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

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-925?page=comments#action_12423838 ] 
            
Alexey A. Ivanov commented on HARMONY-925:
------------------------------------------

Paulex, the tests pass successfully now. Everything's fine. Thank you.

> 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, DecimalFormatTest.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

        

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

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-925?page=all ]

Paulex Yang resolved HARMONY-925.
---------------------------------

    Resolution: Fixed

Tim and Alexey, patch applied at revision r425693, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.


> 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

        

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

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ 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