[ http://nagoya.apache.org/jira/browse/XALANJ-1899?page=history ]

Henry Zongaro updated XALANJ-1899:
----------------------------------

      Assign To:     (was: Xalan Developers Mailing List)
    Description: 
Using a java.lang.Float in a parameter in an expression can cause this error:

javax.xml.transform.TransformerException: java.lang.ClassCastException
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:609)
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:282)
...
Caused by: java.lang.ClassCastException
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.compare(BasisLibrary.java:773)
...

Using the number() function on the parameter causes another error:

javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid
argument type 'java.lang.Float' in call to 'number()'
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:609)
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:282)
...
Caused by: java.lang.RuntimeException: Invalid argument type 'java.lang.Float'
in call to 'number()'
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.runTimeError(BasisLibrary.java:1464)
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.runTimeError(BasisLibrary.java:1472)
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.numberF(BasisLibrary.java:189)
...


Both work fine with a Double parameter

  was:
Using a java.lang.Float in a parameter in an expression can cause this error:

javax.xml.transform.TransformerException: java.lang.ClassCastException
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:609)
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:282)
...
Caused by: java.lang.ClassCastException
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.compare(BasisLibrary.java:773)
...

Using the number() function on the parameter causes another error:

javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid
argument type 'java.lang.Float' in call to 'number()'
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:609)
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:282)
...
Caused by: java.lang.RuntimeException: Invalid argument type 'java.lang.Float'
in call to 'number()'
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.runTimeError(BasisLibrary.java:1464)
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.runTimeError(BasisLibrary.java:1472)
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.numberF(BasisLibrary.java:189)
...


Both work fine with a Double parameter

    Environment: 
Operating System: Other
Platform: Other

  was:
Operating System: Other
Platform: Other

       Priority: Minor
    Bugzilla Id:   (was: 29783)

Bug priority was lost in migration from Bugzilla.

> Float parameters not supported?
> -------------------------------
>
>          Key: XALANJ-1899
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1899
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Anders Blaagaard
>     Priority: Minor
>  Attachments: FloatParameterTest.java
>
> Using a java.lang.Float in a parameter in an expression can cause this error:
> javax.xml.transform.TransformerException: java.lang.ClassCastException
>       at 
> org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:609)
>       at 
> org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:282)
> ...
> Caused by: java.lang.ClassCastException
>       at 
> org.apache.xalan.xsltc.runtime.BasisLibrary.compare(BasisLibrary.java:773)
> ...
> Using the number() function on the parameter causes another error:
> javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid
> argument type 'java.lang.Float' in call to 'number()'
>       at 
> org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:609)
>       at 
> org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:282)
> ...
> Caused by: java.lang.RuntimeException: Invalid argument type 'java.lang.Float'
> in call to 'number()'
>       at 
> org.apache.xalan.xsltc.runtime.BasisLibrary.runTimeError(BasisLibrary.java:1464)
>       at 
> org.apache.xalan.xsltc.runtime.BasisLibrary.runTimeError(BasisLibrary.java:1472)
>       at 
> org.apache.xalan.xsltc.runtime.BasisLibrary.numberF(BasisLibrary.java:189)
> ...
> Both work fine with a Double parameter

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to