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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: