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

Coordinate equals, hashCode and compareTo of JavacFileManager.PathAndContainer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • tools
    • b14

      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;
               }

            prappo Pavel Rappo (Inactive)
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: