JDK-8068291 : Test java/awt/image/DrawImage/IncorrectClipXorModeSW2Surface.java fails with class cast exception in linux and Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,8u40,8u45,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux,solaris
  • CPU: generic
  • Submitted: 2014-12-26
  • Updated: 2015-10-28
  • Resolved: 2015-10-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Duplicate :  
Relates :  
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)
Fixed by JDK-8130400