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

PIT: Plugin Class Name returned by BMPImageReader is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • client-libs
    • tiger
    • generic
    • generic
    • Verified

      BMPImageReaderSpi.getPluginClassName() returns the plugin class name as 'com.sun.imageio.plugins.bmp.BMPImageWriter'. it must actually return BMPImageReader. Due to this, ImageReaderSpi.isOwnReader() returns false even when the reader passed to the SPI is the spi's own reader object.

      Run the sample code and pass a bmp file name. It would print the reader class name, plugin class name and the output of isOwnReader() method.

      This is noticed on solaris as well as windows on the following build:
      java version "2d-jcg-win-01-2003-07-16.tiger"
      Java(TM) 2 Runtime Environment, Standard Edition (build 2d-jcg-win-01-2003-07-16.tiger)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b10, mixed mode)
      ------------------------------------------------------------------------
      WBMPImageReaderSpi.getPluginClassName() returns the plugin class name as WBMPImageWriter. Hence this must be fixed for WBMP also.


      ###@###.### 2003-07-22

            campbell Christopher Campbell (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: