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.
I've created a class, inserted a code from outer application (gedit) into a method of this class and invoked Fix import action. Maybe it is a problem with clipboards.
Created attachment 18117 [details] threadsdump
The basic problem is that FixAllImports takes MDR transaction and then inside this transaction displays dialog for resolving ambiguities. This dialog needs Children.MUTEX, which creates wrong lock ordering (Children.MUTEX cannot be taken in MDR transactions). Seems that the FixAllImports action will need to be rewritten to not hold a transaction when displaying the dialog. Another quick workaroud could be to acquire Children.MUTEX in FixAllImports before the MDR transaction is started. Reassigning to Dan for further evaluation.
/cvs/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v <-- JavaFixAllImports.java new revision: 1.20; previous revision: 1.19
verified