You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:10:31 UTC
[jira] Closed: (VELOCITY-59) Behaviour calling a method in the .vm
where the method expects a float
[ https://issues.apache.org/jira/browse/VELOCITY-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Schmiedehausen closed VELOCITY-59.
------------------------------------------
> Behaviour calling a method in the .vm where the method expects a float
> ----------------------------------------------------------------------
>
> Key: VELOCITY-59
> URL: https://issues.apache.org/jira/browse/VELOCITY-59
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.2
> Environment: Operating System: All
> Platform: PC
> Reporter: Martin
> Assigned To: Velocity-Dev List
>
> The menthod in an object, lets call it TObject, in the context is defined:
> public void setSize( float size );
> in the .vm, the code:
> #set( $size = 99 )
> $TObject.setSize( $size )
> will produce this output from mergeTemplate:
> $TObject.setSize( $size )
> rather than set the property. However if you define the method thus:
> public void setSize( int size );
> all work well, setting the property rather than outputing the text of the call.
> Thanks!
--
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