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

Deprecate the -Xfuture option

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 13
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      medium
    • Compatibility Risk Description:
      Warning message is written to stderr if -Xfuture option is used in the command line. Tools expecting specific output may need to update, but that's the purpose of the warning message.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      Implementation

      Description

      Summary

      Deprecate -Xfuture option from java launcher.

      Problem

      The -Xfuture was added as a way to encapsulate feature which were going to become default in some future version. Hotspot haven't been using it for that for at least a decade, and the only effect it has effectively had is passing -Xverify:all to the VM.

      Solution

      Deprecate the -Xfuture option in man page and help messages. Also print out an error message when the option is used.

      Specification

      For java -X,

      -Xfuture          enable strictest checks, anticipating future default
                        This option is deprecated and may be removed in a
                        future release.

      For man java,

         -Xfuture
             Enables strict class-file format checks that enforce close conformance to the
             class-file format specification. Developers are encouraged to use this flag when
             developing new code because the stricter checks will become the default in future
             releases.
      
             This option is deprecated and may be removed in a future release.

      When use -Xfuture is used in launcher, output following warning message,

      Warning: -Xfuture option is deprecated and may be removed in a future release.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                henryjen Henry Jen
                Reporter:
                hseigel Harold Seigel
                Reviewed By:
                Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: