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

Deprecate the -Xfuture option

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 13
    • tools
    • None
    • behavioral
    • medium
    • 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.
    • add/remove/modify command line option
    • Implementation

      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.

            henryjen Henry Jen
            hseigel Harold Seigel (Inactive)
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: