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

PIT: Plugin Class Name returned by BMPImageReader is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: