[lworld] Restore Objects.equal use of identity check

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: repo-valhalla
    • Component/s: core-libs

      The `java.util.Objects.equals` experiment to reduce identity comparisons for value objects in Valhalla exposed a potential compatibility issue with implementations of application .equals methods.

      Since it was added in 1.7, `Objects.equals(a, b)` has included an identity comparison before invoking the .equals method.
      That comparison can obscure the behavior of the .equals method in which it does not return true when comparing an object with itself.

      The change is reverted to avoid possible compatibility issues that might occur without further investigation or notice.

            Assignee:
            Roger Riggs
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: