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

(pack200) pack200 --repack throws NullPointerException when JAR file specified without path

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b01
    • Introduced In Version:
      7u5
    • Resolved In Build:
      b22
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        This is a regression reported on jdk7u-dev here:

        http://mail.openjdk.java.net/pipermail/jdk7u-dev/2012-July/003722.html

        Basically "pack200 -repack foo.jar" fails as follows since 7u5 b01

        Exception in thread "main" java.lang.NullPointerException
        at com.sun.java.util.jar.pack.Driver.createTempFile(Driver.java:389)
        at com.sun.java.util.jar.pack.Driver.main(Driver.java:244)

        The issue is Driver.createTempFile attempts to call Files.createTempFile with where.toPath but "where" is null when the argument is a simple file name.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sherman Xueming Shen
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: