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 160351

Summary: AlwaysEnabledAction class should always return an Icon for Action.SMALL_ICON property
Product: platform Reporter: hboeck <hboeck>
Component: ActionsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description hboeck 2009-03-16 14:21:16 UTC
The getValue method of the AlwaysEnabledAction class returns an Image in case of the specified
iconBase is a String or URL instance. But this method should return always an Icon instance (e.g. ImageIcon)
for the Action.SMALL_ICON property. See also the Javadoc of the Java Action interface.
Comment 1 Jaroslav Tulach 2009-03-16 16:55:38 UTC
I think this will be an easy fix.
Comment 2 Jaroslav Tulach 2009-03-17 14:01:36 UTC
core-main#d66c2f65916f
Comment 3 Quality Engineering 2009-03-19 20:34:43 UTC
Integrated into 'main-golden', will be available in build *200903191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d66c2f65916f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #160351: Always return Icon for Action.SMALL_ICON key