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

Test java/awt/image/DrawImage/IncorrectClipXorModeSW2Surface.java fails with class cast exception in linux and Solaris

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Introduced In Build:
      b28
    • Introduced In Version:
      9
    • CPU:
      generic
    • OS:
      linux, solaris

      Description

      Testsuite name: Regression
      Test name(s): java/awt/image/DrawImage/IncorrectSourceOffset.java
      Product(s) tested: JDK 8u40b18, JDK 8u45b01, JDK 8b132 JDK 9b40
      OS/architecture: Solaris ,Linux, 64 bit jdk
      Error log file : see jtr mentioned in the comments
      Reproducible: Always
      Reproducible on machine: spb23132.ru.oracle.com
      Is it a Regression: No
      Regression introduced in release/build: N/A
      Test result on the last GAed release for this train: Fail (JDK 8u25b18)
      Test result on FCS : Fail (1.8.0b132 )
      Is it a platform specific issue: Yes (Fails in linux and solaris)
      Passed in windows



      java.lang.ClassCastException: sun.java2d.loops.XORComposite cannot be cast to java.awt.AlphaComposite
              at sun.java2d.xr.XRDrawImage.renderImageXform(XRDrawImage.java:49)
              at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:264)
              at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:124)
              at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:1074)
              at sun.java2d.pipe.ValidatePipe.scaleImage(ValidatePipe.java:207)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3274)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3214)
              at IncorrectClipXorModeSW2Surface.draw(IncorrectClipXorModeSW2Surface.java:124)
              at IncorrectClipXorModeSW2Surface.main(IncorrectClipXorModeSW2Surface.java:101)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
              at java.lang.Thread.run(Thread.java:745)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              sraghavan Srinivasan Raghavan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: