[OpenJDK 2D-Dev] RFR: [JDK-8130400] Test java/awt/image/DrawImage/IncorrectClipXorModeSurface2Surface.java fails with ClassCastException

prasanta sadhukhan prasanta.sadhukhan at oracle.com
Wed Jul 22 07:08:15 UTC 2015

Hi All,

It seems OGL and D3D pipeline delegates XORcomposite transform to 
DrawImage#renderImageXform which is the solution opted for XRender 
pipeline too.
Can you please review this?

On 7/17/2015 5:10 PM, prasanta sadhukhan wrote:
> Hi,
> Bug: https://bugs.openjdk.java.net/browse/JDK-8130400
> webrev: http://cr.openjdk.java.net/~psadhukhan/8130400/webrev.00/
> The test fails with ClassCastException
> java.lang.ClassCastException: sun.java2d.loops.XORComposite cannot be 
> cast to java.awt.AlphaComposite
> when drawing volatimeImage image to volatimeImage in xor mode since 
> during setting xor mode, we do a SetComposite with XORComposite object
> which is not taken into account during transformed blits in linux in 
> Xrender pipeline.
> Regards
> Prasanta

More information about the 2d-dev mailing list