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 267692 - ClassCastException: sun.awt.image.ToolkitImage cannot be cast to javax.swing.Icon
Summary: ClassCastException: sun.awt.image.ToolkitImage cannot be cast to javax.swing....
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-24 22:51 UTC by markiewb
Modified: 2016-09-01 01:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 225904


Attachments
stacktrace (3.80 KB, text/plain)
2016-08-24 22:51 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2016-08-24 22:51:51 UTC
Build: NetBeans IDE Dev (Build 20160711-782b9a84b759)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.71-b15, Java(TM) SE Runtime Environment, 1.8.0_71-b15
OS: Windows 7

User Comments:
markiewb: Switch to effective pom view




Stacktrace: 
java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to javax.swing.Icon
   at javax.swing.AbstractButton.setIconFromAction(AbstractButton.java:1279)
   at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1165)
   at javax.swing.AbstractButton.setAction(AbstractButton.java:1109)
   at javax.swing.JToolBar.add(JToolBar.java:517)
   at org.netbeans.modules.maven.grammar.EffectivePomMD$EffPOMView.getToolbarRepresentation(EffectivePomMD.java:227)
   at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:514)
Comment 1 markiewb 2016-08-24 22:51:54 UTC
Created attachment 161759 [details]
stacktrace
Comment 2 Tomas Stupka 2016-08-31 09:30:13 UTC
fixed in jet-main #43f0d303a3f6
Comment 3 Quality Engineering 2016-09-01 01:53:08 UTC
Integrated into 'main-silver', will be available in build *201609010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/43f0d303a3f6
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #267692 - ClassCastException: sun.awt.image.ToolkitImage cannot be cast to javax.swing.Icon