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

Totally remove all vestiges of com.sun.image.codec.jpeg from JDK 9

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Compatibility Risk:
      high
    • Compatibility Risk Description:
      Applications have had a long time to migrate but we know its widely used.
    • Interface Kind:
      Java API
    • Scope:
      JDK

      Description

      Summary

      Remove the non-standard com.sun.image.codec.jpeg APIs from JDK 9

      Problem

      https://bugs.openjdk.java.net/browse/JDK-6527962

      removed the ability to compile against com.sun.image.codec.jpeg from JDK 7

      That API was non-standard and was obsoleted by Image I/O in JDk 1.4

      OpenJDK does not contain it.

      JDK 7 docs warned it would be removed in JDK 8 but we did not get around to that.

      For JDK 9 the module system would need to decide how to expose/export this.

      The best thing to do is finally remove it. We already (many years ago) migrated all JDK internal uses of this API

      Solution

      remove the API itself and any remaining tests. Note that this does not affect open jdk (it was never there) and will so additionally reduce Oracle JDK/OpenJDK differences.

      The replacement API was shipped in JDK 1.4 in 2002. If JDK 9 ships in 2016 that's a very generous 14 years to adopt it.

      Specification

      Remove the com.sun.image.codec.jpeg package.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              prr Philip Race
              Reviewed By:
              Andrew Brygin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: