You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2013/10/21 07:38:42 UTC

[jira] [Updated] (LANG-332) EqualsBuilder to alternatively use method properties

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

Henri Yandell updated LANG-332:
-------------------------------

    Fix Version/s:     (was: 3.x)
                   Patch Needed

> EqualsBuilder to alternatively use method properties
> ----------------------------------------------------
>
>                 Key: LANG-332
>                 URL: https://issues.apache.org/jira/browse/LANG-332
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.builder.*
>    Affects Versions: 2.3
>            Reporter: Paul Benedict
>             Fix For: Patch Needed
>
>
> While it is very nice reflection can be used to build a nice equals method, the strategy to focus on private properties is non-negotiable. This strategy is incompatible with CGLIB proxies which rely on method invocations to delegate to the properties of the inner target. I would prefer a switch to dynamically invoke public get* methods over direct property access.
> PS: Same thoughts on ReflectionToStringBuilder and HashCodeBuilder



--
This message was sent by Atlassian JIRA
(v6.1#6144)