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

java.util.jar.Manifest.write() fails, but no error is given

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta2
    • generic
    • generic
    • Verified

      java.util.jar.Manifest.write() fails to write anything if MANIFEST_VERSION absent.
      Run the attached program and notice the manifest file manifest.bug is empty. Remove the commented out line and re-run program noticing that manifest.bug all now has valid contents.

      The JavaDoc for java.util.jar.Manifest.write() fails to mention that a verion must be present in order for the data to be written out.

            rraysunw Richard Ray (Inactive)
            rraysunw Richard Ray (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: