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

ComponentColorModel.isCompatibleSampleModel() returns false with ComponentSample

XMLWordPrintable

    • 2d
    • 1.3
    • generic
    • generic

      ComponentColorModel.isCompatibleSampleModel() returns false when tested against ComponentSampleModel.

      Looking at ComponentColorModel.isCompatibleSampleModel, on lines 1349 and 1350 it returns false if the SampleModel is ComponentSampleModel. As I understand, ComponentColorModel is suppose to work with ComponentSampleModel. I think what it meant to do was

               if (!(sm instanceof ComponentSampleModel)) {
                   return false;
               }

            jehung Jeannette Hung (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: