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

Coordinate equals, hashCode and compareTo of JavacFileManager.PathAndContainer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b14

      Description

      A drive-by find (kudos to IntelliJ IDEA):

      diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java
      index c7b95b80437..46e93f5365c 100644
      --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java
      +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java
      @@ -1106,7 +1106,7 @@ public class JavacFileManager extends BaseFileManager implements StandardJavaFil
                 PathAndContainer that = (PathAndContainer) o;
                 return path.equals(that.path)
                     && container.equals(that.container)
      - && index == this.index;
      + && index == that.index;
               }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prappo Pavel Rappo
              Reporter:
              prappo Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: