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

Graphics.setXORMode() throws StackOverflowError on windows in jdk1.4.0beta-b20

XMLWordPrintable

    • 2d
    • beta
    • generic, x86, sparc
    • generic, solaris_7, solaris_8, windows_nt, windows_2000
    • Verified

      In Windows:
      setXORMode() of Graphics class throws 'StackOverflowError' exception on all win32 platforms and blocks all other rendering operations which are performed after this function call. All Java2D rendering operations are failing once this command is encountered. This occurs only in jdk1.4.0beta-20 and not in earlier merlin beta builds and also not in kestrel.

      In solaris, this works fine.

      How to reproduce the bug:
      Comment the command setXORMode() inside the paint method and Run the sample code on jdk1.4.0beta-b20. Everything will be rendered properly. Uncomment that command and run it on the same build. If it throws
      java.lang.StackOverflowError
              at sun.java2d.loops.MaskBlit.<init>(MaskBlit.java:80)
              at sun.java2d.loops.MaskBlit$General.<init>(MaskBlit.java:137)
              
              at sun.java2d.loops.MaskBlit.makePrimitive(MaskBlit.java:116)
       at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:196)
       at sun.java2d.loops.GraphicsPrimitive.getGeneralOp(GraphicsPrimitive.java:301)
      at sun.java2d.loops.GraphicsPrimitive.setupGeneralBinaryOp(GraphicsPrimitive.java:228)

      at sun.java2d.loops.MaskBlit.makePrimitive(MaskBlit.java:117)
      at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:196)
      at sun.java2d.loops.GraphicsPrimitive.getGeneralOp(GraphicsPrimitive.java:301)
      at sun.java2d.loops.GraphicsPrimitive.setupGeneralBinaryOp(GraphicsPrimitive.java:228)

      Then the bug is reproduced. All other rendering operations that follow this command are failing due to this and exception is thorwn continuously.

            tdv Dmitri Trembovetski (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: