Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1005

Consider primitive field types, array types and class hierarchies for generation of equals and hashcode implementations

XMLWordPrintable

      The current generated implementations of equals and hashCode (in FORGE-995) do not delegate to the super class of the object. This should be done for all types whose immediate super classes are not Object.

      Additionally, primitive types like float and double need to be treated differently for both equals and hashCode implementations, while boolean and long need to be treated differently for hashCode implementations.

      Arrays also need to be considered for both equals and hashCode implementations.

            vineet.reynolds_jira Vineet Reynolds (Inactive)
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: