Details
Description
The org.apache.velocity.tools.struts.MessageTool of VelocityTools version 1.4 contains a method signature of String get(String key, Object args[]).
With Velocity 1.5, one could use a Struts resource, such as
test1=this is a
in a Velocity template with
$text.get('test1', ['TEST'])
that would render the text
this is a TEST
Unfortunately, since the released version 1.6 I get the following exception:
Invocation of method 'get' in class org.apache.velocity.tools.struts.MessageTool threw exception java.lang.IllegalArgumentException: wrong number of arguments at ..
The setting of the property runtime.references.strict has no influence.