You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/03/17 07:54:17 UTC

[jira] Created: (HARMONY-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
-------------------------------------------------------------------------

         Key: HARMONY-205
         URL: http://issues.apache.org/jira/browse/HARMONY-205
     Project: Harmony
        Type: Bug
  Components: Classlib  
    Reporter: Paulex Yang


Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

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

Paulex Yang commented on HARMONY-205:
-------------------------------------

looks fine, thank you, George.

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205-v2.zip, JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

Posted by "Anton Avtamonov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-205?page=comments#action_12374138 ] 

Anton Avtamonov commented on HARMONY-205:
-----------------------------------------

Hi George,

Thank you for your check.
My issue is tracked as HARMONY-333 now.

Wishes,
    Anton.

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205-v2.zip, JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-205?page=all ]
     
George Harley resolved HARMONY-205:
-----------------------------------

    Resolution: Fixed

Hi Paulex, 

Enhancements applied in revision 393068. Everything builds alright and the supplied tests run sweetly against Harmony and the 5.0 RI (except where specified).

Thanks for this patch, please could you check that it has been applied as expected. 

Do you want to raise the follow-on JIRA for implementing the serialization support methods or shall I ?

Best regards, 
George


> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

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

Paulex Yang updated HARMONY-205:
--------------------------------

    Attachment: JIRA205-v2.zip

I've fixed two bugs, and run tests of all modules, it should be OK now. Besides the testcases and documents have been enriched. Pls. try it again, sorry for the inconvenience caused. 

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205-v2.zip, JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-205?page=all ]
     
George Harley resolved HARMONY-205:
-----------------------------------

    Resolution: Fixed

Hi Paulex, 

Anton has agreed to open HARMONY-333 to track the attributes problem. If you can verify for me that your patches were applied as you hoped then we can close out this issue. 

Thanks, 
George


> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205-v2.zip, JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

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

George Harley reassigned HARMONY-205:
-------------------------------------

    Assign To: George Harley

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-205?page=all ]
     
George Harley closed HARMONY-205:
---------------------------------


Verified by Paulex. 

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205-v2.zip, JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

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

Paulex Yang updated HARMONY-205:
--------------------------------

    Attachment: JIRA205_text.zip

The wrapped DecimalFormat and test is attached. Pls. note that the serialization relevant methods read/writeObject has not been implemented yet, because it is a little complex so that I think it worths another JIRA if this one is accepted.

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>  Attachments: JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

Posted by "George Harley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-205?page=comments#action_12374095 ] 

George Harley commented on HARMONY-205:
---------------------------------------

Hi Paulex, 

New changes committed in revision 393270.
Thanks for these patches. Please could you check that they have been applied as expected. 


Hi Anton, 

With the latest changes to DecimalFormat in place the test case you supply does still fail. Would you be happy to raise that matter in a separate JIRA issue ?


Best regards, 
George


> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205-v2.zip, JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

Posted by "Anton Avtamonov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-205?page=comments#action_12374043 ] 

Anton Avtamonov commented on HARMONY-205:
-----------------------------------------

Hi Paulex,

I just found the issue with DecimalFormat/AttributedCharacterIterator which you can understand from the test below:

    public void testAttributedCharacterIterator() throws Exception {
        AttributedCharacterIterator iterator = new DecimalFormat().formatToCharacterIterator(new Integer(1));
        assertFalse("attributes should exist", iterator.getAttributes().isEmpty());
    }

Is it covered by this or any other existing issues (like HARMONY-106)?
Should I submit new issue?

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

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

Paulex Yang commented on HARMONY-205:
-------------------------------------

looks good, thank you, George.
I'll raise JIRA for serialization completement later when if you don't mind. thank you for remind.

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

-- 
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] Reopened: (HARMONY-205) java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-205?page=all ]
     
George Harley reopened HARMONY-205:
-----------------------------------


Hi Paulex, 

Despite not causing any failures in the text module tests, the changes to DecimalFormat has resulted in failures in the LUNI, SQL and security modules. I am backing out these changes until the cause has been fully investigated and fixed. 

One quick comment : in the failures for java.util.Date, the year part of a date was including a grouping separator so that, for example, the year "1970" was presented as "1,970". 

Best regards, 
George

> java.text.DecimalFormat doesn't support BigDecimal and BigInteger parsing
> -------------------------------------------------------------------------
>
>          Key: HARMONY-205
>          URL: http://issues.apache.org/jira/browse/HARMONY-205
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: George Harley
>  Attachments: JIRA205_text.zip
>
> Java 5 enhances java.text.DecimalFormat  to format and parse BigDecimal and BigInteger values without loss of precision. Parsing into BigDecimal needs to be enabled using the setParseBigDecimal method. Harmony doesn't provide this method, neither this feature.

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