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

Add -source 10 and -target 10 to javac

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Typical evolution of the command line options.
    • Scope:
      JDK

      Description

      Summary

      Have javac recognize "10" and "1.10" as a valid arguments for the -source and -target options and 10 as a valid argument for the --release option.

      Initially, the "10" arguments will just be aliases for 9 until 10-specific features are added later in the release.

      Problem

      With a new JDK release, new source and target values are needed in javac,

      Solution

      Add javac options -source 10 -source 1.10 -target 10 -target 1.10

      Specification

      -source 1.10 The compiler accepts code with features introduced in Java SE 10.

      -source 10 Synonym for 1.10.

      -target 1.10 The compiler outputs class files appropriate for the 10 platform.

      -target 10 Synonym for 1.10.

      The default source and target is also updated from 9 to 10.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                darcy Joe Darcy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: