You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org> on 2008/12/09 13:16:44 UTC
[jira] Created: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Macro parameter value can't be changed inside a macro
-----------------------------------------------------
Key: VELOCITY-655
URL: https://issues.apache.org/jira/browse/VELOCITY-655
Project: Velocity
Issue Type: Bug
Components: Engine
Affects Versions: 1.6
Reporter: Martin Schwaiger
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the difference between version 1.5 and 1.6:
+Template:+
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
+Result with Velocity Engine 1.5:+
{code}
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
{code}
+Result with Velocity Engine 1.6:+
{code}
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
{code}
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Updated: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Schwaiger updated VELOCITY-655:
--------------------------------------
Description:
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the differences between version 1.5 and 1.6:
Template-Code:
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
Result with Velocity Engine 1.5:
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
Result with Velocity Engine 1.6:
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
was:
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the difference between version 1.5 and 1.6:
Template-Code:
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
Result with Velocity Engine 1.5:
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
Result with Velocity Engine 1.6:
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
>
> I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Issue Comment Edited: (VELOCITY-655) Macro parameter value
can't be changed inside a macro
Posted by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654800#action_12654800 ]
amssrma edited comment on VELOCITY-655 at 12/9/08 6:05 AM:
--------------------------------------------------------------------
I will use the workaround with the new variable (in my example "y") in the meantime and have another try when a new final version of 1.6 (1.6.1 or following) exists.
was (Author: amssrma):
I will use the workaround with the new y-variable in the meantime and have another try when a new final version of 1.6 (1.6.1 or following) exists.
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
> Attachments: VELOCITY-655_ParameterProblem.vm
>
>
> I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Commented: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Jarkko Viinamäki (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659453#action_12659453 ]
Jarkko Viinamäki commented on VELOCITY-655:
-------------------------------------------
If this has been fixed, should it be marked as resolved?
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
> Attachments: VELOCITY-655_ParameterProblem.vm
>
>
> I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Commented: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Byron Foster (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654780#action_12654780 ]
Byron Foster commented on VELOCITY-655:
---------------------------------------
Try the 1.6.1 test build, it works for me in 1.6.1. This issue is addressed in VELOCITY-615
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
> Attachments: VELOCITY-655_ParameterProblem.vm
>
>
> I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Commented: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654800#action_12654800 ]
Martin Schwaiger commented on VELOCITY-655:
-------------------------------------------
I will use the workaround with the new y-variable in the meantime and have another try when a new final version of 1.6 (1.6.1 or following) exists.
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
> Attachments: VELOCITY-655_ParameterProblem.vm
>
>
> I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Updated: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Schwaiger updated VELOCITY-655:
--------------------------------------
Description:
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the difference between version 1.5 and 1.6:
Template-Code:
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
Result with Velocity Engine 1.5:
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
Result with Velocity Engine 1.6:
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
was:
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the difference between version 1.5 and 1.6:
Template-Code:
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
Result with Velocity Engine 1.5:
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
Result with Velocity Engine 1.6:
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
>
> I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the difference between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Updated: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Schwaiger updated VELOCITY-655:
--------------------------------------
Description:
I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the differences between version 1.5 and 1.6:
Template-Code:
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
Result with Velocity Engine 1.5:
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
Result with Velocity Engine 1.6:
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
was:
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the differences between version 1.5 and 1.6:
Template-Code:
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
Result with Velocity Engine 1.5:
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
Result with Velocity Engine 1.6:
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
>
> I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Updated: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Schwaiger updated VELOCITY-655:
--------------------------------------
Attachment: VELOCITY-655_ParameterProblem.vm
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
> Attachments: VELOCITY-655_ParameterProblem.vm
>
>
> I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Updated: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Martin Schwaiger (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Schwaiger updated VELOCITY-655:
--------------------------------------
Description:
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the difference between version 1.5 and 1.6:
Template-Code:
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
Result with Velocity Engine 1.5:
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
Result with Velocity Engine 1.6:
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
was:
I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
In my use case I have to lower the input string first and then do further processing.
With version 1.5 of the velocity engine there were no problems to implement this use case.
Here is an example which shows the difference between version 1.5 and 1.6:
+Template:+
{code}
#macro(testMacro $x)
#set ($x = $x.toLowerCase())
#set ($y = $x.toLowerCase())
x=$x
y=$y
#end
#testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
#testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
{code}
+Result with Velocity Engine 1.5:+
{code}
x=abcdefghijklmnopqrstuvwxyz-testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=abcdefghijklmnopqrstuvwxyz-testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
{code}
+Result with Velocity Engine 1.6:+
{code}
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
y=abcdefghijklmnopqrstuvwxyz-testcase1
x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
y=abcdefghijklmnopqrstuvwxyz-testcase2
{code}
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
>
> I've found a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the difference between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Resolved: (VELOCITY-655) Macro parameter value can't be
changed inside a macro
Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Bubna resolved VELOCITY-655.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.6.1
Yes. :)
> Macro parameter value can't be changed inside a macro
> -----------------------------------------------------
>
> Key: VELOCITY-655
> URL: https://issues.apache.org/jira/browse/VELOCITY-655
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Reporter: Martin Schwaiger
> Fix For: 1.6.1
>
> Attachments: VELOCITY-655_ParameterProblem.vm
>
>
> I've detected a problem when changing parameter values inside a macro using velocity engine version 1.6.
> In my use case I have to lower the input string first and then do further processing.
> With version 1.5 of the velocity engine there were no problems to implement this use case.
> Here is an example which shows the differences between version 1.5 and 1.6:
> Template-Code:
> {code}
> #macro(testMacro $x)
> #set ($x = $x.toLowerCase())
> #set ($y = $x.toLowerCase())
> x=$x
> y=$y
> #end
> #testMacro('ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1')
> #testMacro("ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2")
> {code}
> Result with Velocity Engine 1.5:
> x=abcdefghijklmnopqrstuvwxyz-testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=abcdefghijklmnopqrstuvwxyz-testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
> Result with Velocity Engine 1.6:
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase1
> y=abcdefghijklmnopqrstuvwxyz-testcase1
> x=ABCDEFGHIJKLMNOPQRSTUVWXYZ-Testcase2
> y=abcdefghijklmnopqrstuvwxyz-testcase2
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org