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

EqualsBuilder to alternatively use method properties

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: Patch Needed
    • Component/s: lang.builder.*
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              pbenedict Paul Benedict

              Dates

              • Created:
                Updated:

                Issue deployment