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

Pack200.Packer.pack(...) and Pack200.Unpacker.unpack(...) throw unspecified exceptions

    Details

    • Subcomponent:
    • Resolved In Build:
      b120
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      Packer.pack(JarFile in, OutputStream out) throws IllegalStateException if jar file "in" is closed.
      Packer.pack(JarFile in, OutputStream out) and Packer. pack(JarInputStream in, OutputStream out) throw NullPointerException if any argument is null.
      Unpacker.unpack(File in, JarOutputStream out) throw NullPointerException if any argument is null.
      Unpacker.unpack(InputStream in, JarOutputStream out) throws NPE of "out" is null.

        Activity

        Hide
        ksrini Kumar Srinivasan added a comment -
        BT2:EVALUATION

        As for throwing NPE's the package documentation/API specification for java.util.jar.Pack200, says the following:
        "Unless otherwise noted, passing a null argument to a constructor or method in this class will cause a NullPointerException to be thrown."

        The IllegalStateException needs to be fixed.
        Show
        ksrini Kumar Srinivasan added a comment - BT2:EVALUATION As for throwing NPE's the package documentation/API specification for java.util.jar.Pack200, says the following: "Unless otherwise noted, passing a null argument to a constructor or method in this class will cause a NullPointerException to be thrown." The IllegalStateException needs to be fixed.
        Show
        jprtbugupd JPRT Bug Updates (Inactive) added a comment - BT2:EVALUATION http://hg.openjdk.java.net/jdk7/build/jdk/rev/dd3afa184407

          People

          • Assignee:
            ksrini Kumar Srinivasan
            Reporter:
            dmiltsov Dmitry Miltsov (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Imported:
              Indexed: