This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 71984 - ClassCastException during repaint, sun.awt.image.BufImgSurfaceData
Summary: ClassCastException during repaint, sun.awt.image.BufImgSurfaceData
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 18:41 UTC by swankjesse
Modified: 2006-01-29 20:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description swankjesse 2006-01-29 18:41:23 UTC
I'm using Mac OS X 10.4.4 PPC with Java 1.5.0_05.

This problem exists in Netbeans 4.1 and 5.0 beta, probably others. It makes the IDE completely 
unusable on my Mac.

java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData
	at apple.laf.AquaImageFactory.drawCompleteButton(AquaImageFactory.java:306)
	at apple.laf.AquaButtonBorder.paintButton(AquaButtonBorder.java:230)
	at apple.laf.AquaButtonUI.paint(AquaButtonUI.java:376)
	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
	at javax.swing.JComponent.paintComponent(JComponent.java:742)
	at org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI$TimerButton.paintComponent
(BasicScrollingTabDisplayerUI.java:344)
	at javax.swing.JComponent.paint(JComponent.java:1005)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
	at javax.swing.JComponent.paintChildren(JComponent.java:842)
	at javax.swing.JComponent.paint(JComponent.java:1014)
	at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:34)
	at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
	at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
	at java.awt.Container.paint(Container.java:1722)
	at org.netbeans.core.windows.view.ui.MainWindow.paint(MainWindow.java:528)
	at sun.awt.RepaintArea.paintComponent(RepaintArea.java:276)
	at sun.awt.RepaintArea.paint(RepaintArea.java:241)
	at apple.awt.ComponentModel.handleEvent(ComponentModel.java:252)
	at apple.awt.CWindow.handleEvent(CWindow.java:159)
	at java.awt.Component.dispatchEventImpl(Component.java:4097)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3869)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 swankjesse 2006-01-29 19:20:01 UTC
A workaround exists, change to Java 1.4 runtime on Mac.
Comment 2 swankjesse 2006-01-29 20:04:23 UTC
This problem appears to be fixed in 5.0 RC2