JDK-8301295 : (jdeps) Deprecate jdeps -profile option
  • Type: CSR
  • Component: tools
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 21
  • Submitted: 2023-01-28
  • Updated: 2023-01-30
  • Resolved: 2023-01-30
Related Reports
CSR :  
Description
Summary
-------

Deprecate the `jdeps -profile` option.

Problem
-------

Compact profiles are defined in Java SE 8 and becomes legacy in Java SE 9, with modules.   By default jdeps shows the types and their modules that a class depend on.    jdeps -profile option shows which compact profile of the types that a class depends on instead.  Given modules have been introduced for many releases, this option can be deprecated and removed in a future release to reduce the maintenance.

Solution
--------

Deprecate -profile option.   A warning message is generated if the -profile option is used.


Specification
-------------

The man page will be updated to include the following text for the option:

This option is deprecated and may be removed in a future release.

A message with similar content will be generated if the option is used when invoking jdeps.



Comments
jdeps and javac are the only tools I found that support -profile options.
30-01-2023

Moving to Approved. Do any other tools have -profile options that should be re-examined?
30-01-2023