Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4849

@EqualsAndHashCode should use getX() instead of x when accessing properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.1
    • None
    • None

    Description

      Currently the hashCode() and equals() methods generated using @Canonical or @EqualsAndHashCode directly access the field rather than using the property getters. If custom getters have been provided, this yields the incorrect value.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: