Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-332

EqualsBuilder to alternatively use method properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3
    • Patch Needed
    • lang.builder.*
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pbenedict Paul Benedict
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: