Deprecate -profile option in javac

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 20
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: