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

RasterFactory.createBandedSampleModel() passed unexpected with illegal data type

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Introduced In Build:
      1.2
    • Introduced In Version:
    • CPU:
      generic
    • OS:
      generic

      Description


      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);
        }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: