You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Martin Gadbois (JIRA)" <xa...@xml.apache.org> on 2005/05/06 19:24:07 UTC

[jira] Created: (XALANC-509) round() returns erronous result

round() returns erronous result
-------------------------------

         Key: XALANC-509
         URL: http://issues.apache.org/jira/browse/XALANC-509
     Project: XalanC
        Type: Bug
  Components: XPathC  
    Versions: 1.7, 1.8, 1.9    
 Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

    Reporter: Martin Gadbois
 Attachments: bug.xsl

Stylesheet bug.xsl:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:template match="/">
        <xsl:value-of select="round(3294967992.4)"/>
    </xsl:template>
    
</xsl:stylesheet>

invocation:
Xalan any.xml bug.xsl

yields:
<?xml version="1.0" encoding="UTF-8"?>-2147483648

I expect:
<?xml version="1.0" encoding="UTF-8"?>3294967992





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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANC-509) round() returns erronous result

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-509?page=all ]

David Bertoni updated XALANC-509:
---------------------------------

    Attachment: patch.txt

A patch is attached.  Committers, can you please review?

Martin, if you can test this, that would be great.

> round() returns erronous result
> -------------------------------
>
>          Key: XALANC-509
>          URL: http://issues.apache.org/jira/browse/XALANC-509
>      Project: XalanC
>         Type: Bug
>   Components: XPathC
>     Versions: 1.7, 1.8, 1.9
>  Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
>     Reporter: Martin Gadbois
>     Assignee: David Bertoni
>  Attachments: bug.xsl, patch.txt
>
> Stylesheet bug.xsl:
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>     <xsl:template match="/">
>         <xsl:value-of select="round(3294967992.4)"/>
>     </xsl:template>
>     
> </xsl:stylesheet>
> invocation:
> Xalan any.xml bug.xsl
> yields:
> <?xml version="1.0" encoding="UTF-8"?>-2147483648
> I expect:
> <?xml version="1.0" encoding="UTF-8"?>3294967992

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-509) round() returns erronous result

Posted by "Martin Gadbois (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-509?page=comments#action_64660 ]
     
Martin Gadbois commented on XALANC-509:
---------------------------------------

Wow! Quick turnaround... 
Sorry, I tried to compile from sources but couldn't in the time I allowed for this.
This is not a show stopper for me anyway, but I wanted to report it.


> round() returns erronous result
> -------------------------------
>
>          Key: XALANC-509
>          URL: http://issues.apache.org/jira/browse/XALANC-509
>      Project: XalanC
>         Type: Bug
>   Components: XPathC
>     Versions: 1.7, 1.8, 1.9
>  Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
>     Reporter: Martin Gadbois
>     Assignee: David Bertoni
>  Attachments: bug.xsl, patch.txt
>
> Stylesheet bug.xsl:
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>     <xsl:template match="/">
>         <xsl:value-of select="round(3294967992.4)"/>
>     </xsl:template>
>     
> </xsl:stylesheet>
> invocation:
> Xalan any.xml bug.xsl
> yields:
> <?xml version="1.0" encoding="UTF-8"?>-2147483648
> I expect:
> <?xml version="1.0" encoding="UTF-8"?>3294967992

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-509) round() returns erronous result

Posted by "Matt Hoyt (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-509?page=comments#action_64652 ]
     
Matt Hoyt commented on XALANC-509:
----------------------------------

Patch looks fine.

> round() returns erronous result
> -------------------------------
>
>          Key: XALANC-509
>          URL: http://issues.apache.org/jira/browse/XALANC-509
>      Project: XalanC
>         Type: Bug
>   Components: XPathC
>     Versions: 1.7, 1.8, 1.9
>  Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
>     Reporter: Martin Gadbois
>     Assignee: David Bertoni
>  Attachments: bug.xsl, patch.txt
>
> Stylesheet bug.xsl:
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>     <xsl:template match="/">
>         <xsl:value-of select="round(3294967992.4)"/>
>     </xsl:template>
>     
> </xsl:stylesheet>
> invocation:
> Xalan any.xml bug.xsl
> yields:
> <?xml version="1.0" encoding="UTF-8"?>-2147483648
> I expect:
> <?xml version="1.0" encoding="UTF-8"?>3294967992

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Closed: (XALANC-509) round() returns erronous result

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-509?page=all ]
     
David Bertoni closed XALANC-509:
--------------------------------


> round() returns erronous result
> -------------------------------
>
>          Key: XALANC-509
>          URL: http://issues.apache.org/jira/browse/XALANC-509
>      Project: XalanC
>         Type: Bug
>   Components: XPathC
>     Versions: 1.7, 1.8, 1.9
>  Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
>     Reporter: Martin Gadbois
>     Assignee: David Bertoni
>      Fix For: CurrentCVS
>  Attachments: bug.xsl, patch.txt
>
> Stylesheet bug.xsl:
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>     <xsl:template match="/">
>         <xsl:value-of select="round(3294967992.4)"/>
>     </xsl:template>
>     
> </xsl:stylesheet>
> invocation:
> Xalan any.xml bug.xsl
> yields:
> <?xml version="1.0" encoding="UTF-8"?>-2147483648
> I expect:
> <?xml version="1.0" encoding="UTF-8"?>3294967992

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANC-509) round() returns erronous result

Posted by "Martin Gadbois (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-509?page=all ]

Martin Gadbois updated XALANC-509:
----------------------------------

    Attachment: bug.xsl

Stylesheet file.

> round() returns erronous result
> -------------------------------
>
>          Key: XALANC-509
>          URL: http://issues.apache.org/jira/browse/XALANC-509
>      Project: XalanC
>         Type: Bug
>   Components: XPathC
>     Versions: 1.7, 1.8, 1.9
>  Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
>     Reporter: Martin Gadbois
>  Attachments: bug.xsl
>
> Stylesheet bug.xsl:
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>     <xsl:template match="/">
>         <xsl:value-of select="round(3294967992.4)"/>
>     </xsl:template>
>     
> </xsl:stylesheet>
> invocation:
> Xalan any.xml bug.xsl
> yields:
> <?xml version="1.0" encoding="UTF-8"?>-2147483648
> I expect:
> <?xml version="1.0" encoding="UTF-8"?>3294967992

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANC-509) round() returns erronous result

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-509?page=all ]
     
David Bertoni resolved XALANC-509:
----------------------------------

     Resolution: Fixed
    Fix Version: CurrentCVS

> round() returns erronous result
> -------------------------------
>
>          Key: XALANC-509
>          URL: http://issues.apache.org/jira/browse/XALANC-509
>      Project: XalanC
>         Type: Bug
>   Components: XPathC
>     Versions: 1.7, 1.8, 1.9
>  Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
>     Reporter: Martin Gadbois
>     Assignee: David Bertoni
>      Fix For: CurrentCVS
>  Attachments: bug.xsl, patch.txt
>
> Stylesheet bug.xsl:
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>     <xsl:template match="/">
>         <xsl:value-of select="round(3294967992.4)"/>
>     </xsl:template>
>     
> </xsl:stylesheet>
> invocation:
> Xalan any.xml bug.xsl
> yields:
> <?xml version="1.0" encoding="UTF-8"?>-2147483648
> I expect:
> <?xml version="1.0" encoding="UTF-8"?>3294967992

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Assigned: (XALANC-509) round() returns erronous result

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-509?page=all ]

David Bertoni reassigned XALANC-509:
------------------------------------

    Assign To: David Bertoni

> round() returns erronous result
> -------------------------------
>
>          Key: XALANC-509
>          URL: http://issues.apache.org/jira/browse/XALANC-509
>      Project: XalanC
>         Type: Bug
>   Components: XPathC
>     Versions: 1.7, 1.8, 1.9
>  Environment: Linux airlibre 2.4.26-e2compr #19 SMP Wed Jul 28 14:04:02 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
>     Reporter: Martin Gadbois
>     Assignee: David Bertoni
>  Attachments: bug.xsl, patch.txt
>
> Stylesheet bug.xsl:
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>     <xsl:template match="/">
>         <xsl:value-of select="round(3294967992.4)"/>
>     </xsl:template>
>     
> </xsl:stylesheet>
> invocation:
> Xalan any.xml bug.xsl
> yields:
> <?xml version="1.0" encoding="UTF-8"?>-2147483648
> I expect:
> <?xml version="1.0" encoding="UTF-8"?>3294967992

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


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org