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

Coordinate equals, hashCode and compareTo of JavacFileManager.PathAndContainer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • tools
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: