You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Bryan Stopp (JIRA)" <ji...@apache.org> on 2010/06/15 23:30:23 UTC

[jira] Created: (CXF-2847) BigDecimalType incorrectly prints scientific notation

BigDecimalType incorrectly prints scientific notation
-----------------------------------------------------

                 Key: CXF-2847
                 URL: https://issues.apache.org/jira/browse/CXF-2847
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding
    Affects Versions: 2.2.9
            Reporter: Bryan Stopp
            Priority: Minor
         Attachments: BigDecimalStringTest.java, BigDecimalType.java.patch

By the SOAP spec, types of "decimal" are not supposed to use scientific notation (http://www.w3.org/TR/xmlschema-2/#decimal).

However if the value of a BigDecimal is small enough, the toString() method (used by the BigDecimalType class) will print using scientific notation.

Instead, this type mapper should use the toPlainString() method to ensure no scientific notation is used.

I have attached a patch and an example to what i am referring. I don't have an actual unit test for the BigDecimalType class itself.

-B

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2847) BigDecimalType incorrectly prints scientific notation

Posted by "Bryan Stopp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Stopp updated CXF-2847:
-----------------------------

    Attachment: BigDecimalType.java.patch
                BigDecimalStringTest.java

> BigDecimalType incorrectly prints scientific notation
> -----------------------------------------------------
>
>                 Key: CXF-2847
>                 URL: https://issues.apache.org/jira/browse/CXF-2847
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.9
>            Reporter: Bryan Stopp
>            Priority: Minor
>         Attachments: BigDecimalStringTest.java, BigDecimalType.java.patch
>
>
> By the SOAP spec, types of "decimal" are not supposed to use scientific notation (http://www.w3.org/TR/xmlschema-2/#decimal).
> However if the value of a BigDecimal is small enough, the toString() method (used by the BigDecimalType class) will print using scientific notation.
> Instead, this type mapper should use the toPlainString() method to ensure no scientific notation is used.
> I have attached a patch and an example to what i am referring. I don't have an actual unit test for the BigDecimalType class itself.
> -B

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-2847) BigDecimalType incorrectly prints scientific notation

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879313#action_12879313 ] 

Benson Margulies commented on CXF-2847:
---------------------------------------

Patch applied. Thanks.

> BigDecimalType incorrectly prints scientific notation
> -----------------------------------------------------
>
>                 Key: CXF-2847
>                 URL: https://issues.apache.org/jira/browse/CXF-2847
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.9
>            Reporter: Bryan Stopp
>            Assignee: Benson Margulies
>            Priority: Minor
>             Fix For: 2.3
>
>         Attachments: BigDecimalStringTest.java, BigDecimalType.java.patch
>
>
> By the SOAP spec, types of "decimal" are not supposed to use scientific notation (http://www.w3.org/TR/xmlschema-2/#decimal).
> However if the value of a BigDecimal is small enough, the toString() method (used by the BigDecimalType class) will print using scientific notation.
> Instead, this type mapper should use the toPlainString() method to ensure no scientific notation is used.
> I have attached a patch and an example to what i am referring. I don't have an actual unit test for the BigDecimalType class itself.
> -B

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-2847) BigDecimalType incorrectly prints scientific notation

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies reassigned CXF-2847:
-------------------------------------

    Assignee: Benson Margulies

> BigDecimalType incorrectly prints scientific notation
> -----------------------------------------------------
>
>                 Key: CXF-2847
>                 URL: https://issues.apache.org/jira/browse/CXF-2847
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.9
>            Reporter: Bryan Stopp
>            Assignee: Benson Margulies
>            Priority: Minor
>         Attachments: BigDecimalStringTest.java, BigDecimalType.java.patch
>
>
> By the SOAP spec, types of "decimal" are not supposed to use scientific notation (http://www.w3.org/TR/xmlschema-2/#decimal).
> However if the value of a BigDecimal is small enough, the toString() method (used by the BigDecimalType class) will print using scientific notation.
> Instead, this type mapper should use the toPlainString() method to ensure no scientific notation is used.
> I have attached a patch and an example to what i am referring. I don't have an actual unit test for the BigDecimalType class itself.
> -B

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2847) BigDecimalType incorrectly prints scientific notation

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-2847:
-----------------------------

    Fix Version/s: 2.2.10
                       (was: 2.3)

> BigDecimalType incorrectly prints scientific notation
> -----------------------------------------------------
>
>                 Key: CXF-2847
>                 URL: https://issues.apache.org/jira/browse/CXF-2847
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.9
>            Reporter: Bryan Stopp
>            Assignee: Benson Margulies
>            Priority: Minor
>             Fix For: 2.2.10
>
>         Attachments: BigDecimalStringTest.java, BigDecimalType.java.patch
>
>
> By the SOAP spec, types of "decimal" are not supposed to use scientific notation (http://www.w3.org/TR/xmlschema-2/#decimal).
> However if the value of a BigDecimal is small enough, the toString() method (used by the BigDecimalType class) will print using scientific notation.
> Instead, this type mapper should use the toPlainString() method to ensure no scientific notation is used.
> I have attached a patch and an example to what i am referring. I don't have an actual unit test for the BigDecimalType class itself.
> -B

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2847) BigDecimalType incorrectly prints scientific notation

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies resolved CXF-2847.
-----------------------------------

    Fix Version/s: 2.3
       Resolution: Fixed

patch applied.

> BigDecimalType incorrectly prints scientific notation
> -----------------------------------------------------
>
>                 Key: CXF-2847
>                 URL: https://issues.apache.org/jira/browse/CXF-2847
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.9
>            Reporter: Bryan Stopp
>            Assignee: Benson Margulies
>            Priority: Minor
>             Fix For: 2.3
>
>         Attachments: BigDecimalStringTest.java, BigDecimalType.java.patch
>
>
> By the SOAP spec, types of "decimal" are not supposed to use scientific notation (http://www.w3.org/TR/xmlschema-2/#decimal).
> However if the value of a BigDecimal is small enough, the toString() method (used by the BigDecimalType class) will print using scientific notation.
> Instead, this type mapper should use the toPlainString() method to ensure no scientific notation is used.
> I have attached a patch and an example to what i am referring. I don't have an actual unit test for the BigDecimalType class itself.
> -B

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.