[ 
https://issues.apache.org/jira/browse/VELOCITY-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henning Schmiedehausen closed VELOCITY-295.
-------------------------------------------


> Velocity doesn't do arithmetics with java.lang.Long
> ---------------------------------------------------
>
>                 Key: VELOCITY-295
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-295
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.4
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Teo
>         Assigned To: Velocity-Dev List
>
> If I put a java.lang.Long value into velocity context and try to do
> arithmetics ('#set ($result = $long_value + 1)') with it, I get an 
> undefined value. If I convert that value into java.lang.Integer and 
> put Integer into context, simple arithmetic operations work well.
> Is this a bug, or is this intended operation? I really need operations
> on Long values in velocity templates. I could write support for this
> myself, but I want feedback before doing it.
> P.S. I also checked other classes, like java.lang.Double, java.lang.Float- 
> they
> don't work either.
> P.P.S. I also checked this on Velocity v1.3, same results.
> Teofilis Martisius

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


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

Reply via email to