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

RasterFactory.createBandedSampleModel() passed unexpected with illegal data type

XMLWordPrintable

    • 2d
    • 1.2
    • generic
    • generic


      In JAI-1.0, RasterFactory.createBandedSampleModel() throws IllegalArgumentException when the first argument (data type) is set to -1.

      In current release, this method ignores this error. This bug affects the
      following JCK test cases:

      RasterFactory.CreateBandedSampleModel_5 9
      RasterFactory.CreateBandedSampleModel_6 16

      The following program can be used to illustrate this behaviour.

      import javax.media.jai.RasterFactory;

      public class Bug_CreateBandedSampleModel_5 {

        public static void main(String args[]) {
          RasterFactory.createBandedSampleModel(-1, 1, 2, 3);
        }
      }

            jehung Jeannette Hung
            chialin Chianphon Lin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: