Run Java2Demo on Linux. Then just keep resizing the window repeatedly. You will
occasionally get the following exception :
ava.lang.ClassCastException:
at sun.awt.image.BufImgSurfaceData.createDataSC(BufImgSurfaceData.java:243)
at sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java:83)
at sun.awt.image.VolatileSurfaceManager.getBackupSurface(VolatileSurfaceManager.java:243)
at sun.awt.image.VolatileSurfaceManager.restoreContents(VolatileSurfaceManager.java:265)
at sun.java2d.SurfaceData.restoreContents(SurfaceData.java:122) at sun.awt.X11SurfaceData$X11PixmapSurfaceData.getReplacement(X11SurfaceData.java:522)
at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:354)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:65)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:48)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:732)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2804)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2794)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4848)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4791)
at javax.swing.JComponent.paint(JComponent.java:963)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1702)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:201)
at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:632)
at java.awt.Component.dispatchEventImpl(Component.java:4005)
at java.awt.Container.dispatchEventImpl(Container.java:2017)
at java.awt.Window.dispatchEventImpl(Window.java:1746)
at java.awt.Component.dispatchEvent(Component.java:3777)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)