-
Bug
-
Resolution: Duplicate
-
P4
-
7, 8
-
None
-
generic
-
generic
com.sun.imageio.plugins.jpeg.JPEGImageWriter
The following three methods have the same bug :
private int getSrcCSType(ColorModel cm)
private int getDestCSType(ImageTypeSpecifier destType)
private int getDefaultDestCSType(ColorModel cm)
which is that the switch statement falls through to the next
case (missing break :)
case ColorSpace.TYPE_3CLR:
if (cs == JPEG.YCC) {
if (alpha) {
retval = JPEG.JCS_YCCA;
} else {
retval = JPEG.JCS_YCC;
}
}
case ColorSpace.TYPE_CMYK:
retval = JPEG.JCS_YCCK;
break;
The following three methods have the same bug :
private int getSrcCSType(ColorModel cm)
private int getDestCSType(ImageTypeSpecifier destType)
private int getDefaultDestCSType(ColorModel cm)
which is that the switch statement falls through to the next
case (missing break :)
case ColorSpace.TYPE_3CLR:
if (cs == JPEG.YCC) {
if (alpha) {
retval = JPEG.JCS_YCCA;
} else {
retval = JPEG.JCS_YCC;
}
}
case ColorSpace.TYPE_CMYK:
retval = JPEG.JCS_YCCK;
break;
- duplicates
-
JDK-7098598 com.sun.imageio.plugins.jpeg.JPEGImageWriter.getSrcCSType() missing break in switch
-
- Closed
-
-
JDK-8033716 Fix raw and unchecked lint warnings in com.sun.imageio
-
- Resolved
-