Hi, Philipp
Yes, I agree it would make sense to add a newline in the example
Manifest, as you suggest. I can look into changing it.
Thanks,
-Brent
On 2/12/19 9:05 AM, Philipp Kunz wrote:
Hi,
https://docs.oracle.com/javase/10/docs/specs/jar/jar.html#per-entry-att
ributes
shows an example manifest
Manifest-Version: 1.0
Created-By: 1.8 (Oracle Inc.)
Sealed: true
Name: foo/bar/
Sealed: false
with the explanation
It means that all the packages archived in a.jar are sealed, except
that package foo.bar is not.
However, this is not a valid manifest because the same page also states
Attribute names cannot be repeated within a section.
which I guess also should apply to main attributes and
The main section [...]. No attribute in this section can have its
name equal to "Name".
Long story short, I guess a blank line is missing before line 4 of that
example manifest between "Sealed: true" and "Name: foo/bar/".
There are example manifests further down at the end of section https://
docs.oracle.com/javase/10/docs/specs/jar/jar.html#signature-validation
with such blank lines. It would look then like this:
Manifest-Version: 1.0
Created-By: 1.8 (Oracle Inc.)
Sealed:
true
Name: foo/bar/
Sealed: false
I haven't found the sources of that referenced jar.html and therefore
I'm not sure whether my concern still currently applies or has been
fixed since JDK 10.
Regards,
Philipp