Uploaded image for project: 'CCC Migration Project'
  1. CCC Migration Project
  2. CCC-8011044

Remove support for 1.5 and earlier source and target options

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      medium
    • Compatibility Risk Description:
      Hide
      While the set of source and target options is not promised to be stable part of the platform, it has been in place for a long time and some disruption can be expected. Publishing the policy in JDK 8 and marking all these old options as obsolete should mitigate the adoption issues.
      Show
      While the set of source and target options is not promised to be stable part of the platform, it has been in place for a long time and some disruption can be expected. Publishing the policy in JDK 8 and marking all these old options as obsolete should mitigate the adoption issues.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      JDK

      Description

      Summary

      Remove support for argument to javac's -source and -target options for releases earlier than 6.

      Problem

      Per the policy described in

      JEP 182: Policy for Retiring javac -source and -target Options http://openjdk.java.net/jeps/182

      Starting in JDK 9, old source and target options will be retired to ease the maintenance of javac.

      Solution

      In javac, targets

      1.1 1.2 1.3 1.4 1.5 / 5

      are no longer recognized and target 6 / 1.6 is reported as obsolete.

      Source

      1.0 1.1 1.2 1.3 1.4 1.5 / 5

      are no longer recognized and source 6 / 1.6 is reported as obsolete.

      Specification

      The javac man page in JDK 9 only lists as supported:
      
      -source
      
      6 / 1.6 (obsolete)
      7 / 1.7
      8 / 1.8
      9 / 1.9
      
      -target
      
      6 / 1.6 (obsolete)
      7 / 1.7
      8 / 1.8
      9 / 1.9

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                darcy Joe Darcy
                Reviewed By:
                Jonathan Gibbons
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: