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

Test java/awt/image/DrawImage/IncorrectClipXorModeSurface2Surface.java fails with ClassCastException

    Details

    • Subcomponent:
      2d
    • Introduced In Build:
      b70
    • Resolved In Build:
      b78
    • CPU:
      generic
    • OS:
      solaris

      Backports

        Description

        Test name(s): java/awt/image/DrawImage/IncorrectClipXorModeSurface2Surface.java

        JDK tested: 9b70
        OS tested: Windows , Solaris 11
        Is it a regression? NO
        Is it platform specific? Yes( test passes in windows)
        The is failure reproduced: always
                    
        General description:

        ----------System.out:(0/0)----------
        ----------System.err:(21/1470)----------
        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:1050)
        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 IncorrectClipXorModeSurface2Surface.draw(IncorrectClipXorModeSurface2Surface.java:136)
        at IncorrectClipXorModeSurface2Surface.main(IncorrectClipXorModeSurface2Surface.java:112)
        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:502)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:745)

        JavaTest Message: Test threw exception: java.lang.ClassCastException: sun.java2d.loops.XORComposite cannot be cast to java.awt.AlphaComposite
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.ClassCastException: sun.java2d.loops.XORComposite cannot be cast to java.awt.AlphaComposite

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  psadhukhan Prasanta Sadhukhan
                  Reporter:
                  pchopra Pooja Chopra (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: