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

Regression: JAR Tool extract (x) option broken in JDK1.2Beta4-F.

XMLWordPrintable

    • jar
    • 1.2beta4
    • sparc
    • solaris_2.6
    • Verified

      The JAR Tool (jar) extract (x) option is broken in JDK1.2Beta4-F. When
      creating a jar file with a directory of files and then trying to extract
      it I get an IOException unable to create the directory. This is a P1 problem.
      Here is what happens. Notice the extract option at the end. Also the JAR
      Tool is still broken with the (m) option. It doesn't create a manifest
      file with the correct information. This is already entered as bug 4136993.
      This is also a P1 problem.

      % jar cvf jar.jar dir
      adding: dir (in=0) (out=0) (stored 0%)
      adding: dir/images (in=0) (out=0) (stored 0%)
      adding: dir/images/SCCS (in=0) (out=0) (stored 0%)
      adding: dir/images/SCCS/s.awake.gif (in=537) (out=398) (deflated 25%)
      adding: dir/images/SCCS/s.stop.gif (in=573) (out=400) (deflated 30%)
      adding: dir/images/SCCS/s.right1.gif (in=577) (out=399) (deflated 30%)
      adding: dir/images/SCCS/s.right2.gif (in=585) (out=408) (deflated 30%)
      adding: dir/images/SCCS/s.scratch1.gif (in=593) (out=415) (deflated 30%)
      adding: dir/images/SCCS/s.scratch2.gif (in=585) (out=408) (deflated 30%)
      adding: dir/images/SCCS/s.sleep1.gif (in=512) (out=375) (deflated 26%)
      adding: dir/images/SCCS/s.sleep2.gif (in=522) (out=386) (deflated 26%)
      adding: dir/images/SCCS/s.yawn.gif (in=581) (out=409) (deflated 29%)
      adding: dir/images/right2.gif (in=142) (out=145) (deflated -2%)
      adding: dir/images/awake.gif (in=152) (out=157) (deflated -3%)
      adding: dir/images/yawn.gif (in=142) (out=147) (deflated -3%)
      adding: dir/images/stop.gif (in=138) (out=143) (deflated -3%)
      adding: dir/images/right1.gif (in=136) (out=141) (deflated -3%)
      adding: dir/images/scratch2.gif (in=141) (out=146) (deflated -3%)
      adding: dir/images/scratch1.gif (in=146) (out=151) (deflated -3%)
      adding: dir/images/sleep1.gif (in=135) (out=140) (deflated -3%)
      adding: dir/images/sleep2.gif (in=141) (out=146) (deflated -3%)
      adding: dir/SCCS (in=0) (out=0) (stored 0%)
      adding: dir/SCCS/s.Neko2$1.class (in=1534) (out=997) (deflated 35%)
      adding: dir/SCCS/s.Neko2$2.class (in=1538) (out=996) (deflated 35%)
      adding: dir/SCCS/s.Neko2.class (in=6298) (out=3455) (deflated 45%)
      adding: dir/SCCS/s.Neko2.html (in=447) (out=286) (deflated 36%)
      adding: dir/SCCS/s.Neko2.java (in=5856) (out=1783) (deflated 69%)
      adding: dir/SCCS/s.ScrollingTextThread.class (in=3526) (out=2065) (deflated 41%)
      adding: dir/Neko2.class (in=4336) (out=2389) (deflated 44%)
      adding: dir/Neko2$1.class (in=879) (out=544) (deflated 38%)
      adding: dir/Neko2.java (in=5539) (out=1605) (deflated 71%)
      adding: dir/Neko2$2.class (in=880) (out=545) (deflated 38%)
      adding: dir/Neko2.html (in=130) (out=98) (deflated 24%)
      adding: dir/ScrollingTextThread.class (in=2314) (out=1360) (deflated 41%)

      % mkdir junk
      % cd junk
      % jar xvf ../jar.jar
       extracted: META-INF/MANIFEST.MF
        inflated: dir
      java.io.IOException: dir: could not create directory
      at java.lang.Throwable.<init>(Compiled Code)
      at java.lang.Exception.<init>(Compiled Code)
      at java.io.IOException.<init>(Compiled Code)
      at sun.tools.jar.Main.extractFile(Compiled Code)
      at sun.tools.jar.Main.extract(Compiled Code)
      at sun.tools.jar.Main.run(Compiled Code)
      at sun.tools.jar.Main.main(Compiled Code)

            zlisunw Zhenghua Li (Inactive)
            aefreche Alan Frechette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: