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 227526 - Is UIManager call in ImageUtilties violation of UIManager contract?
Summary: Is UIManager call in ImageUtilties violation of UIManager contract?
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2013-03-15 14:03 UTC by Jaroslav Tulach
Modified: 2013-03-15 14:11 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 Jaroslav Tulach 2013-03-15 14:03:34 UTC
Stando, your change 1df8daf75020 in ImageUtilities broke org.openide.awt.MenuBarNotInAWTTest.

In fact I believe your change violates Swing calling conventions. UIManager can only be called on EDT, but ImageUtilities.loadImageIcon could be called from any thread so far.
Comment 1 Stanislav Aubrecht 2013-03-15 14:11:26 UTC
I don't see anything related to EDT access restriction in UIManager's JavaDoc.
Only in case of Nimbus l&f there are problems when retrieving values from UIManager - but that's because of poor implementation of that particular l&f.