JDK-8176843 : Manifest not strictly implementing its specification
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-03-15
  • Updated: 2024-06-03
  • Resolved: 2024-06-03
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
See JDK-8176834 - the test to create a MANIFEST.MF with the sequence "Multi-Release: true\rOther: value" fails to recognize that the value of Multi-Release should be the string "true"
It also fails to recognize that if the next line after a value starts with a SPACE then it's to be considered a continuation of the value, so it wrongly recognizes "Multi-Release: true\n true" as meaning Multi-Release has the value "true"

http://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html


Comments
There are 2 issues reported here: > a MANIFEST.MF with the sequence "Multi-Release: true\rOther: value" fails to recognize that the value of Multi-Release should be the string "true" This one has been fixed in https://bugs.openjdk.org/browse/JDK-8200530 > It also fails to recognize that if the next line after a value starts with a SPACE then it's to be considered a continuation of the value, so it wrongly recognizes "Multi-Release: true\n true" as meaning Multi-Release has the value "true" This second one was fixed in https://bugs.openjdk.org/browse/JDK-8153213. So both these issues are no longer reproducible. I have verified this by uncommenting a test that was commented out in https://bugs.openjdk.org/browse/JDK-8176834. I'll close this current one as duplicate of the other and then open a new issue to uncomment the currently commented test in test/jdk/java/util/jar/JarFile/mrjar/MultiReleaseJarAPI.java.
03-06-2024