[
https://issues.apache.org/jira/browse/VELOCITY-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636336#action_12636336
]
byronvf edited comment on VELOCITY-618 at 10/2/08 8:11 AM:
----------------------------------------------------------------
Removed modification of ASTNENode.java and ASTEQNode.java so that the behavior
of #if( $foo == "bar") is not changed. These changes are not appropriate for
this patch, and should be separated out into a different patch, to be discussed
independently.
Edit: yea you're right. These fixes exist already, and strict mode will fall
out without changes.
was (Author: byronvf):
Remove modification of ASTNENode.java and ASTEQNode.java so that the
behavior of #if( $foo == "bar") is not changed. These changes are not
appropriate for this patch, and should be separated out into a different patch,
to be discussed independently.
> Strict property and method references
> -------------------------------------
>
> Key: VELOCITY-618
> URL: https://issues.apache.org/jira/browse/VELOCITY-618
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Reporter: Byron Foster
> Fix For: 1.5.1, 1.6
>
> Attachments: strictPropertyAndVariable_2.patch
>
>
> The given patch against trunk adds a new option 'runtime.references.strict'.
> When set to true, invalid property references will throw a
> InvalidMethodException. For example $foo.bar will throw an exception if the
> object contained in $foo has no such property as bar. Any kind of reference
> to bar will cause an exception including:
> #if(#foo.bar)
> #set($foo.bar = "junk")
> #set($foo.getBar())
> etc...
--
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]