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

Summary: Is UIManager call in ImageUtilties violation of UIManager contract?
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: -- Other --Assignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: TEST
Priority: P2    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.