JDK-8221687 : Deprecated j.u.jar.Attributes.Name attributes accidentally set to null
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2019-03-29
  • Updated: 2019-08-08
  • Resolved: 2019-03-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b15Fixed
Related Reports
Relates :  
Description
It seems that after JDK-8214712 values of deprecated attributes
are now null which doesn't perfectly conform to the spec
https://download.java.net/java/early_access/jdk13/docs/api/java.base/java/util/jar/Attributes.Name.html

The following code
        System.out.println(Attributes.Name.EXTENSION_INSTALLATION);
        System.out.println(Attributes.Name.IMPLEMENTATION_URL);
        System.out.println(Attributes.Name.IMPLEMENTATION_VENDOR_ID);

on JDK13b13 shows
extensionInstallation = Extension-Installation
extensionInstallation = Implementation-URL
extensionInstallation = Implementation-Vendor-Id

on JDK13b14 shows
null
null
null

JDK-8214712 didn't change the spec and the currect state of the spec is confusing, for example:
================

    EXTENSION_INSTALLATION

    @Deprecated
    public static final Attributes.Name EXTENSION_INSTALLATION

    Deprecated.
    Extension mechanism is no longer supported.
    Name object for Extension-Installation manifest attribute.
================

As one can see - "Extension-Installation" value is still there. Same with other two deprecated properties.

The spec needs to be updated or the implementation should be corrected.


Comments
Verified that below test is passing with latest JDK 13 build 32 (using JCK13 b12) ��� > api/java_util/jar/Attributes/Name/Ctor.html Corresponding JTR files are attached.
08-08-2019