Fix up hashCode() for ZipFile.Source.Key

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 22
    • Affects Version/s: 17, 21, 22
    • Component/s: core-libs
    • b21
    • Verified

      ZipFile.Source.Key constructor takes file argument passed from ZipFile constructor. Since ZipFile.Source.Key is used as key in HashMap lookups, the file should be stored with an absolute path value.

      see ZipFile:
                  synchronized (files) {
                      src = files.get(key);
                      if (src != null) {
                          src.refs++;
                          return src;
                      }
                  }
                  src = new Source(key, toDelete, zc);

            Assignee:
            Sean Coffey
            Reporter:
            Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: