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

Remove support for source and target 1.7 option in javac

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 20
    • tools
    • None
    • behavioral
    • low
    • Removed an old and assumed to be uncommonly used alternative to javac's command line options.
    • add/remove/modify command line option
    • JDK

      Summary

      Drop support for "7" from javac's -source, -target, and --release options.

      Problem

      JDK 7 shipped over a decade ago; continued support for that 7 increases maintenance costs of javac and is outside of the spirit of the policy published in JEP 182.

      Solution

      Drop the 7 from the set of supported values..

      Specification

      The value "7" is not listed in the relevant javac -help output:

        --release <release>
              Compile for the specified Java SE release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
      ...
        --source <release>, -source <release>
              Provide source compatibility with the specified Java SE release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
      ...
        --target <release>, -target <release>
              Generate class files suitable for the specified Java SE release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20

            darcy Joe Darcy
            darcy Joe Darcy
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: