Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8245393

Deprecate -profile option in javac

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 20
    • tools
    • None
    • behavioral
    • minimal
    • Adding a warning message at this time is very low risk.
    • add/remove/modify command line option

      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.

            jjg Jonathan Gibbons
            darcy Joe Darcy
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: