You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Marc Dzaebel (JIRA)" <de...@velocity.apache.org> on 2011/06/16 16:35:48 UTC
[jira] [Created] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
$mathTool.roundTo fails for negative numbers
--------------------------------------------
Key: VELTOOLS-142
URL: https://issues.apache.org/jira/browse/VELTOOLS-142
Project: Velocity Tools
Issue Type: Bug
Components: GenericTools
Affects Versions: 1.4
Environment: Linux Ubunu 8.05
Reporter: Marc Dzaebel
Priority: Critical
MathTool.roundTo(1, -1) = 0.9
I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Updated] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Marc Dzaebel (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marc Dzaebel updated VELTOOLS-142:
----------------------------------
Fix Version/s: 1.4
Affects Version/s: (was: 1.4)
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
> Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Updated] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Marc Dzaebel (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marc Dzaebel updated VELTOOLS-142:
----------------------------------
Priority: Major (was: Critical)
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Affects Versions: 1.4
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Marc Dzaebel (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051096#comment-13051096 ]
Marc Dzaebel commented on VELTOOLS-142:
---------------------------------------
Deep in some library in Polarion there is another MathTool with version 1.1 (and not 1.4) that contains the bug. However, I can now upgrade to 1.4 and the problem is fixed there. So Apache has nothing to do any more.
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Affects Versions: 1.4
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Sergiu Dumitriu (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050467#comment-13050467 ]
Sergiu Dumitriu commented on VELTOOLS-142:
------------------------------------------
Works for me on velocity-tools-1.4. Are you sure 1.4 isn't the version of velocity-engine?
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Affects Versions: 1.4
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
> Priority: Critical
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Marc Dzaebel (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050683#comment-13050683 ]
Marc Dzaebel commented on VELTOOLS-142:
---------------------------------------
Thanks Sergiu,
I proved that Polarion really uses velocity-tools-generic-1.4.jar in its plugin (http://extensions.polarion.com/polarion/extensions/extension.jsp?extension=PE-174). I reinstalled the newest version, however, still $mathTool.roundTo(1, -1) prints -0.9. Even the doc points to 1.4 but there might be problems in the plugin implementation, so the Polarion support is already informed.
A workaround is to use $mathTool.abs and print a minus sign for negative numbers, so priority is only major (if this is a bug in Velocity at all). You might wait or close this issue until I get an answers from the plugin developer.
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Affects Versions: 1.4
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Updated] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Marc Dzaebel (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marc Dzaebel updated VELTOOLS-142:
----------------------------------
Comment: was deleted
(was: Occured in 1.1)
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
> Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Sergiu Dumitriu (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051140#comment-13051140 ]
Sergiu Dumitriu commented on VELTOOLS-142:
------------------------------------------
It's not good to "introduce" fixed issues in the release notes. This should be closed as Duplicate instead.
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
> Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] [Resolved] (VELTOOLS-142) $mathTool.roundTo fails for
negative numbers
Posted by "Marc Dzaebel (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marc Dzaebel resolved VELTOOLS-142.
-----------------------------------
Resolution: Fixed
Occured in 1.1
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
> Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org