[
https://issues.apache.org/jira/browse/VELOCITY-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658801#action_12658801
]
Byron Foster commented on VELOCITY-645:
---------------------------------------
Yes. This patch does not effect the == and != operators. It effects the
>=, >, <, <=, operators, and in these cases it doesn't change any behavior in
the comparison. Where normally the comparisons logged to error when the
comparison could not be made it now appropriately throws an exception when in
strict mode (RUNTIME_REFERENCES_STRICT). These cases where over looked when I
added strict mode :(
> Value comparisons in strict mode should be strict
> -------------------------------------------------
>
> Key: VELOCITY-645
> URL: https://issues.apache.org/jira/browse/VELOCITY-645
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Reporter: Byron Foster
> Fix For: 1.7
>
> Attachments: 645.patch
>
>
> In strict mode throw an exception when values cannot be correctly compared
> instead for ignoring this case.
> For example:
> #set($a = $NULL)
> #set($b = $NULL)
> #if ($a > $b)
> foobar
> #end
--
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]