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.
Summary: | ClassCastException: javax.swing.plaf.nimbus.TabbedPaneTabbedPaneTabAreaPainter cannot be cast to com.sun.java.swing.Painter | ||
---|---|---|---|
Product: | platform | Reporter: | martinhavle <martinhavle> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | issues, jis, sustaining |
Priority: | P2 | Keywords: | REGRESSION, VISUALVM |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=151504 | ||
Issue Type: | DEFECT | Exception Reporter: | 151504 |
Attachments: |
stacktrace
stacktrace |
Description
martinhavle
2009-05-20 10:33:58 UTC
Created attachment 82457 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200905200201) VM: Java HotSpot(TM) Client VM, 16.0-b02, Java(TM) SE Runtime Environment, 1.7.0-ea-b57 OS: Windows XP, 5.1, x86 User Comments: Occured when trying to run ide with param --laf Nimbus Stacktrace: java.lang.ClassCastException: javax.swing.plaf.nimbus.TabbedPaneTabbedPaneTabAreaPainter cannot be cast to com.sun.java.swing.Painter at org.netbeans.swing.tabcontrol.plaf.NimbusEditorTabDisplayerUI.paintBackground(NimbusEditorTabDisplayerUI.java:115) at org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI.paint(BasicTabDisplayerUI.java:363) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) at javax.swing.JComponent.paintComponent(JComponent.java:778) at javax.swing.JComponent.paint(JComponent.java:1042) at javax.swing.JComponent.paintChildren(JComponent.java:879) Created attachment 82459 [details]
stacktrace
probably an issue in jdk 1.7 *** Issue 165582 has been marked as a duplicate of this issue. *** Product Version = NetBeans IDE 6.7 (Build 200906212001) Operating System = Windows Vista version 6.0 running on x86 Java; VM; Vendor = 1.7.0-ea; Java HotSpot(TM) Client VM 16.0-b03; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.7.0-ea-b59 Reproduced when starting NB 6.7 / VisualVM devbuilds with '--ui Nimbus' switch. This is a regression on NetBeans side - used to work fine with NetBeans 6.5/VisualVM 1.1.1, but now breaks NetBeans 6.7/upcoming VisualVM version. Fix for VisualVM is urgently needed. In JDK 7 javax.swing.plaf.nimbus.TabbedPaneTabbedPaneTabAreaPainter implements javax.swing.Painter instead of com.sun.java.swing.Painter. javax.swing.Painter is new in JDK 7 from build 57 see http://hg.openjdk.java.net/jdk7/tl/jdk/diff/7f45fcc04f8e/src/share/classes/javax/swing/Painter.java This issue already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=151504 fixed core-main 4dd45a9d78ad Martin / Jirka, please verify ... to get this into Patch 1. Verified in NetBeans IDE Dev (Build NB-Core-Build-2872-on-090707) / VisualVM using the platform. The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/01051413bfda Integrated into 'main-golden', will be available in build *200907071400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4dd45a9d78ad User: S. Aubrecht <saubrecht@netbeans.org> Log: #165580 - class cast exception in jdk1.7 Product Version: NetBeans IDE Dev (Build 200907160201) Java: 1.7.0-ea; Java HotSpot(TM) Client VM 16.0-b03 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Verified in 6.7.1 RC |