JDK-8245393 : Deprecate -profile option in javac
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 20
  • Submitted: 2020-05-19
  • Updated: 2022-11-16
  • Resolved: 2022-11-16
Related Reports
CSR :  
Description
Summary
-------

Deprecate the `-profile` option.

Problem
-------

Compact profiles were introduced in 8 and then removed in 9, with the
introduction of actual modules.  `javac` supports the use of profiles in conjunction with `--release 8`, but the feature is little-used and is a 
maintenance burden.

Solution
--------

The option should be deprecated, and a warning message generated 
if the option is used, giving notice that the option may be removed in a
future release.

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 `javac`.
Comments
Moving to Approved for JDK 20; would also approve for JDK 21.
16-11-2022