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.
ExecutorService API spec says: Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and *returns a list of the tasks that were awaiting execution*. The implementation of shutdownNow() in RP returns running tasks however.
Created attachment 102907 [details] test case Attaching test case.
Created attachment 102927 [details] proposed fix I'm not sure whether testSomeTasksNotRunIfShutDown() is still testing all the cases it is supposed to test.
core-main#314f837b75a9
Integrated into 'main-golden', will be available in build *201011130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/314f837b75a9 User: Petr Hejl <phejl@netbeans.org> Log: #191846: RequestProcessor returns running tasks from shutdownNow()