[ 
https://issues.apache.org/jira/browse/VELOCITY-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henning Schmiedehausen closed VELOCITY-350.
-------------------------------------------


> Base Equality on toString() when operands are of different classes
> ------------------------------------------------------------------
>
>                 Key: VELOCITY-350
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-350
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.5
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Will Glass-Husain
>             Fix For: 1.5
>
>
> This was discussed on the dev list a few weeks ago.  If two objects being 
> compared are of different (non-numeric) classes, I'd like to see equality be 
> based on toString (rather than just be false).  This just makes sense in a 
> template environment where types are not visible to template writers, and is 
> also the way that JSTL/JSP 2.0 works.  This is particularly useful when 
> comparing a literal String to a class implementing Bloch's Typesafe 
> Enumeration pattern [1] or a StringBuffer.
> Comments welcome.
> [1]
> http://java.sun.com/developer/Books/shiftintojava/

-- 
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]

Reply via email to