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

Stop overriding equals and hashCode in ir nodes and Symbol

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: