You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Matteo Vescovi (JIRA)" <ji...@apache.org> on 2008/09/02 12:43:44 UTC

[jira] Created: (CXF-1780) float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity

float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity
--------------------------------------------------------------------------------------------------

                 Key: CXF-1780
                 URL: https://issues.apache.org/jira/browse/CXF-1780
             Project: CXF
          Issue Type: Bug
          Components: CORBA Binding
    Affects Versions: 2.1.2
            Reporter: Matteo Vescovi
             Fix For: 2.1.3


Floats with value Float.NEGATIVE_INFINITY or doubles with value Double.NEGATIVE_INFINITY are incorrectly marshalled/unmarshalled as positive infinity.




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


[jira] Updated: (CXF-1780) float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity

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

Matteo Vescovi updated CXF-1780:
--------------------------------

    Attachment: infinity_patch.diff

Patch attached.

Apply from trunk with: patch -p0 < infinity_patch.diff



> float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity
> --------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1780
>                 URL: https://issues.apache.org/jira/browse/CXF-1780
>             Project: CXF
>          Issue Type: Bug
>          Components: CORBA Binding
>    Affects Versions: 2.1.2
>            Reporter: Matteo Vescovi
>             Fix For: 2.1.3
>
>         Attachments: infinity_patch.diff
>
>
> Floats with value Float.NEGATIVE_INFINITY or doubles with value Double.NEGATIVE_INFINITY are incorrectly marshalled/unmarshalled as positive infinity.

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


[jira] Resolved: (CXF-1780) float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity

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

Daniel Kulp resolved CXF-1780.
------------------------------

    Resolution: Fixed
      Assignee: Daniel Kulp

> float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity
> --------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1780
>                 URL: https://issues.apache.org/jira/browse/CXF-1780
>             Project: CXF
>          Issue Type: Bug
>          Components: CORBA Binding
>    Affects Versions: 2.1.2
>            Reporter: Matteo Vescovi
>            Assignee: Daniel Kulp
>             Fix For: 2.1.3
>
>         Attachments: infinity_patch.diff
>
>
> Floats with value Float.NEGATIVE_INFINITY or doubles with value Double.NEGATIVE_INFINITY are incorrectly marshalled/unmarshalled as positive infinity.

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


[jira] Closed: (CXF-1780) float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity

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

Willem Jiang closed CXF-1780.
-----------------------------


> float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity
> --------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1780
>                 URL: https://issues.apache.org/jira/browse/CXF-1780
>             Project: CXF
>          Issue Type: Bug
>          Components: CORBA Binding
>    Affects Versions: 2.1.2
>            Reporter: Matteo Vescovi
>            Assignee: Daniel Kulp
>             Fix For: 2.1.3
>
>         Attachments: infinity_patch.diff
>
>
> Floats with value Float.NEGATIVE_INFINITY or doubles with value Double.NEGATIVE_INFINITY are incorrectly marshalled/unmarshalled as positive infinity.

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


[jira] Commented: (CXF-1780) float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627636#action_12627636 ] 

Daniel Kulp commented on CXF-1780:
----------------------------------


Because "Infinity" and "-Infinity" are not valid values for float/double in XML.   If validation is turned on in JAXB, it would reject those values.   Likewise, I don't think the XMLBeans databinding would process them correctly either.





> float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity
> --------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1780
>                 URL: https://issues.apache.org/jira/browse/CXF-1780
>             Project: CXF
>          Issue Type: Bug
>          Components: CORBA Binding
>    Affects Versions: 2.1.2
>            Reporter: Matteo Vescovi
>             Fix For: 2.1.3
>
>         Attachments: infinity_patch.diff
>
>
> Floats with value Float.NEGATIVE_INFINITY or doubles with value Double.NEGATIVE_INFINITY are incorrectly marshalled/unmarshalled as positive infinity.

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


[jira] Commented: (CXF-1780) float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity

Posted by "Matteo Vescovi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627624#action_12627624 ] 

Matteo Vescovi commented on CXF-1780:
-------------------------------------

Patch attached resolves the issue by fixing the marshalling/umarshalling of infinity values following the pattern already in place, by using "-INF" and "INF" strings.

I wonder whether it would be cleaner to just use the output of Double.NEGATIVE_INFINITY ("-Infinity") or Double.POSITIVE_INFINITY instead (similarly for float type).


> float's and double's negative infinity is incorrectly marshalled/unmarshalled as positive infinity
> --------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1780
>                 URL: https://issues.apache.org/jira/browse/CXF-1780
>             Project: CXF
>          Issue Type: Bug
>          Components: CORBA Binding
>    Affects Versions: 2.1.2
>            Reporter: Matteo Vescovi
>             Fix For: 2.1.3
>
>         Attachments: infinity_patch.diff
>
>
> Floats with value Float.NEGATIVE_INFINITY or doubles with value Double.NEGATIVE_INFINITY are incorrectly marshalled/unmarshalled as positive infinity.

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