JDK-7098598 : com.sun.imageio.plugins.jpeg.JPEGImageWriter.getSrcCSType() missing break in switch
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.imageio
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-10-06
  • Updated: 2011-10-07
  • Resolved: 2011-10-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
private int getSrcCSType(ColorModel cm) {
...
            switch (cs.getType()) {
...
            case ColorSpace.TYPE_3CLR:
                if (cs == JPEG.JCS.getYCC()) {
...
                }
            case ColorSpace.TYPE_CMYK:
                retval = JPEG.JCS_CMYK;
                break;
...

YCC* images types are overwritten when one case falls through to the next.