JDK-8214213 : Release Note: jdeps --print-module-deps Reports Transitive Dependences
  • Type: Sub-task
  • Component: tools
  • Affected Version: 11.0.11-oracle,12
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2018-11-22
  • Updated: 2021-01-20
  • Resolved: 2019-02-16
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 JDK 12
11.0.11-oracleResolved 12Resolved
Description
`jdeps --print-module-deps`, `--list-deps`, and `--list-reduce-deps` options have been
enhanced as follows.

1. By default, they perform transitive module dependence analysis on libraries on the class path and module path, both directly and indirectly, as required by the given input JAR files or classes. Previously, they only reported the modules required by the given input JAR files or classes.  The `--no-recursive` option can be used to request non-transitive dependence analysis.

2. By default, they flag any missing dependency, i.e. not found from class path and module path, as an error.   The `--ignore-missing-deps` option can be used to suppress missing dependence errors. Note that a custom image is created with the list of modules output by jdeps when using the  `--ignore-missing-deps` option for a non-modular application. Such an application, running on the custom image, might fail at runtime when missing dependence errors are suppressed.