JDK-4942329 : ClassCastException on Linux when resizing Java2Demo
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2003-10-23
  • Updated: 2003-10-23
  • Resolved: 2003-10-23
Related Reports
Duplicate :  
Description
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)

Comments
EVALUATION I talked to Chris about this and he mentioned that it is most likely a dup of 4931726 which he just fixed, but it will be putback on Monday. ###@###.### 2003-10-22
22-10-2003