JDK-8213909 : jdeps --print-module-deps should report missing dependences
  • Type: Enhancement
  • Component: tools
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-11-14
  • Updated: 2021-04-22
  • Resolved: 2018-11-22
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 11
11.0.11Fixed
Related Reports
CSR :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8214213 :  
Description
$ jdeps --print-module-deps app.jar

It finds the modules required by the specified application.  Its result can be used to create a runtime image for such application to run.

If app.jar depends on libraries that are not found from the classpath or module path, it currently does not report missing dependences.

$ jdeps --class-path libs --print-module-deps app.jar

jdeps --print-module-deps only reports module dependences required by app.jar.   To include the transitive module dependences required by libs, if referenced, -R option can be used.   To improve usability, -R should be the default.

A new --ignore-missing-deps option can be introduced to ignore missing deps.

Comments
Backport note: Fix is included in JDK-8168869.
15-12-2020