Add source 12 and target 12 to javac

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 12
    • Component/s: tools
    • None
    • behavioral
    • minimal
    • It is compatible to add new options to -source/-target. Making the latest -source/-target the default has been the policy for several JDK releases.
    • add/remove/modify command line option
    • JDK

      Summary
      -------

      Add `-source` and `-target` options to `javac` corresponding to JDK 12.

      Problem
      -------

      Part of starting development on a new JDK is adding .new `-source` and `-target` options to `javac`. These options are used in the compilation of the JDK sources.


      Solution
      --------

      Add support for `javac -source 12 ...` and `javac -target 12 ...`.

      The new value of -source/-target is also made the default.

      Note: following the precedent set in JDK 11, "1.12" is *not* treated as an alias for "12".

      Specification
      -------------

      No update is needed in `javac --help`; the conceptual man page should reflect the increased range of `-source`/`-target` values.

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

              Created:
              Updated:
              Resolved: