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

REGRESSION: JCK1.5-runtime api/javax_imageio/ImageIO/index.html#getImageWriter f

XMLWordPrintable

    • tiger
    • generic
    • generic
    • Verified



      Name: mmR10223 Date: 08/06/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b13
      JCK : JCK1.5-runtime (JCK1.5-b02)
      Platform[s] : all
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]: api/javax_imageio/ImageIO/index.html#getImageWriter [getImageWriter001]

      This test passes using JDK1.5.0-b12, JDK1.4.2-b28 on all platforms.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/javax_imageio/ImageIO/getImageWriterTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b13/jck15/sparc/sol10_sparc_gnomeatch_smp_linux-8/workDir/api/javax_imageio/ImageIO/index_getImageWriter.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/bash


      JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"
      JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/solaris-sparc"
      CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
       
      $JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.javax.imageio.ImageIO.getImageWriterTests -TestCaseID getImageWriter001

      --- script end ---

      Test output:
      ============
      java.lang.ClassCastException: com.sun.imageio.plugins.bmp.BMPImageReaderSpi
      at javax.imageio.ImageIO.getImageWriter(ImageIO.java:1006)
      at javasoft.sqe.tests.api.javax.imageio.ImageIO.getImageWriterTests.getImageWriter001(getImageWriterTests.java:51)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
      at javasoft.sqe.tests.api.javax.imageio.ImageIO.getImageWriterTests.main(getImageWriterTests.java:28)
      getImageWriter001: Failed. Test case throws exception: java.lang.ClassCastException: com.sun.imageio.plugins.bmp.BMPImageReaderSpi
      getImageWriter002: Passed. OKAY
      getImageWriter003: Passed. with expected java.lang.IllegalArgumentException: reader == null!
      STATUS:Failed.test cases: 3; passed: 2; failed: 1; first test case failure: getImageWriter001
      result: Failed. test cases: 3; passed: 2; failed: 1; first test case failure: getImageWriter001


      test result: Failed. test cases: 3; passed: 2; failed: 1; first test case failure: getImageWriter001

      Specific machine info:
      ======================
      Hostname: linux-8
      OS: Solaris 10 (sparc) (GNOME)
      Hostname: linux-24
      OS: RedHat Linux


      ======================================================================

            campbell Christopher Campbell (Inactive)
            mmvsunw Mmv Mmv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: