JDK-8048063 : (jdeps) Add filtering capability
  • Type: Enhancement
  • Component: tools
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-06-25
  • Updated: 2017-05-17
  • Resolved: 2014-07-09
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 JDK 9
8u40Fixed 9 b23Fixed
Description
There is jdeps -package and -regex option to find dependences that match the specified value.  There is no easy way to filter out specified package (e.g. java.lang). 

In addition, jdeps currently excludes all dependencies within the same JAR file.  The only option to get the dependencies within the same JAR file is -verbose option which prints out the class-level dependencies.    This is a useful enhancement as developers can find out the package-level dependencies whereas the class dependencies are more verbose that they may not need to look at.