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

(zipfs) Path.exists() always returns false on dirs when zip/JAR file built without dirs

XMLWordPrintable

    • b128
    • generic
    • generic
    • Verified

      6989148 provided a zip file file system provider.

      It appears that the Path.exists() method always returns false for paths in the fil file system

      javac creates a zip FileSystem from rt.jar, and all attempts to check if java/lang exists fail:

      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar /java /java false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar /java/lang /java/lang false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar /java/ /java/ false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar /java/lang/ /java/lang/ false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java java false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java/lang java/lang false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java/ java/ false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java/lang/ java/lang/ false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar \java /java false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar \java\lang /java/lang false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar \java\ /java false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar \java\lang/ /java/lang false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java java false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java\lang java/lang false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java\ java false
      test: /w/jjg/work/nio/tl/build/linux-amd64/j2sdk-image/jre/lib/rt.jar java\lang\ java/lang false

            sherman Xueming Shen
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: