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.
Build: NetBeans IDE Dev (Build 20130626-8093670afabf) VM: Java HotSpot(TM) Client VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11 OS: SunOS User Comments: alexvsimon: compile file Stacktrace: java.lang.AssertionError at org.netbeans.modules.progress.ui.RunOffEDTImpl.createModalDialog(RunOffEDTImpl.java:557) at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventThreadCustomDialogImpl(RunOffEDTImpl.java:241) at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventThreadWithCustomDialogContent(RunOffEDTImpl.java:222) at org.netbeans.api.progress.ProgressUtils.runOffEventThreadWithCustomDialogContent(ProgressUtils.java:214) at org.netbeans.modules.cnd.utils.ui.ModalMessageDlg.run(ModalMessageDlg.java:136) at org.netbeans.modules.cnd.utils.ui.ModalMessageDlg.runLongTask(ModalMessageDlg.java:102)
Created attachment 136315 [details] stacktrace
The change that caused the regression is: 257205:f2927475bfa1 - mkleint Jun 24, 2013 #180542, #188382, #213607, #177959 actionPerformed() in lookupSensitiveAction subclasses posted to RP. In tests kept in AWT to avoid deleting them altogether. Might have problems primarily with lookup content changing between AWT and RP processing.
The API contract for ActionProvider never states that it's methods will be called exclusively from AWT.
(In reply to comment #3) > The API contract for ActionProvider never states that it's methods will be > called exclusively from AWT. This is no true. Please refer to the javadoc: public interface ActionProvider { ... /** * Run a project command. * Will be invoked in the event thread. ... * @see ActionProgress */ void invokeAction(String command, Lookup context) throws IllegalArgumentException; ... }
(In reply to comment #3) > The API contract for ActionProvider never states that it's methods will be > called exclusively from AWT. Sorry, the invokeAction() does state that it's called in AWT. The other methods don't. I believe the contract has to go, even getting Projects out of the action context is slow.
how hard is to change your code?
http://hg.netbeans.org/core-main/rev/c7fda4b8c08e
*** Bug 231933 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201306272300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c7fda4b8c08e User: Milos Kleint <mkleint@netbeans.org> Log: #231818 ActionProvider's javadoc states the perform() method is to be called in AWT.
*** Bug 231950 has been marked as a duplicate of this bug. ***