JDK-4782054 : Allow for comments in the MANIFEST.MF file
  • Type: Enhancement
  • Component: tools
  • Sub-Component: jar
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2002-11-20
  • Updated: 2020-06-11
  • Resolved: 2020-06-11
Description

Name: gm110360			Date: 11/20/2002


FULL PRODUCT VERSION :
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

Not relevant

A DESCRIPTION OF THE PROBLEM :
According to the JAR File Specification one is not allowed
to put comments in the MANIFEST.MF

However as the manifest is human generated there should be
the possibility to capture a developers thinking in this
file, like is possible in the Service Providers.

The syntax used for the providers however won't work for the
manifest as it is possible to use the '#' character in a
line
(http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html#Service
Provider)

I opt for the comment syntax used in the Properties.load(),
without the '!' character:

A line that contains only whitespace or whose first
non-whitespace character is an ASCII # is ignored (thus, #
indicate comment lines).

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Not relevant

REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 167272) 
======================================================================