Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7098598

com.sun.imageio.plugins.jpeg.JPEGImageWriter.getSrcCSType() missing break in switch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 8
    • client-libs
    • None

      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.

            Unassigned Unassigned
            ahgross Andrew Gross
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: