Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8010703

Stop overriding equals and hashCode in ir nodes and Symbol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None

      We've only used it for label comparisons so far, and what's worse - some nodes to override them some don't. That is very brittle and it's just a matter of time before this causes and issue with a Set or a Map of nodes somewhere.

      I've POCed "reference comparable only" for everything that inherits Location in my branch and it works fine.

      Also got rid of a lof code mass that was dubious hashCode or equals functions.

            lagergren Marcus Lagergren
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: