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

Update JAR spec regarding when the last character is an EOF in a Manfiest

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b24
    • Verification:
      Not verified

      Description

      The JAR spec specifies the following:

      - Before parsing:
          - If the last character of the file is an EOF character (code 26),
              the EOF is treated as whitespace. Two newlines are appended (one
              for editors that don't put a newline at the end of the last
              line, and one so that the grammar doesn't have to special-case
              the last entry, which may not have a blank line after it).


      Manifest.java has never supported the above description. At this time, the best thing to do is to remove this from the JAR Spec

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lancea Lance Andersen
                Reporter:
                lancea Lance Andersen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: