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

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 9
    • tools
    • behavioral
    • medium
    • 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.
    • add/remove/modify command line option
    • JDK

      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

            darcy Joe Darcy
            darcy Joe Darcy
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: