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

javac, method visitTypeVar() at visitor Types.hashCode generates the same hash code for different type variables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 8, 9
    • tools
    • b85
    • Not verified

    Backports

      Description

        The only field considered at method visitTypeVar() of visitor Types.hashCode is t.tsym. This field is shared by all the type variables cloned from a given one. Thus they all will have the same hashCode provoking a lot of collisions in any hash table storing them.

        Attachments

          Issue Links

            Activity

              People

                vromero Vicente Arturo Romero Zaldivar
                vromero Vicente Arturo Romero Zaldivar
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: