JDK-8176329 : jdeps to detect MR jar file and output a warning
  • Type: Enhancement
  • Component: tools
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-03-07
  • Updated: 2017-11-29
  • Resolved: 2017-04-27
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 8
8u141Fixed
Related Reports
Relates :  
Description
jdeps is multi-release JAR aware (JDK-8153654).   jdeps in JDK 8 does not recognize multi-release JAR.  It will ignore the versioned entries.   However the versioned entries may be used at runtime.  It would be useful to warn the user to use JDK 9 jdeps with multi-release JAR support so that it can get a correct dependencies of a given release.
Comments
We should also update jdk8u jdeps to show the APIs that are added in JDK 9 to replace use of JDK internal APIs, as part of the enhancement backport.
27-04-2017

This patch will advise the developers to use JDK 9 jdeps. This only impacts jdeps tool and no change to the runtime. The change is low risk and very localized to check an input JAR file containing "Multi-Release" attribute in the attribute.
25-04-2017

Suggested webrev: http://cr.openjdk.java.net/~bchristi/8176329/webrev.04/
25-04-2017