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 255652 - RequestProcessor.awaitTermination() does not wait for scheduled tasks
Summary: RequestProcessor.awaitTermination() does not wait for scheduled tasks
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-02 08:33 UTC by Martin Entlicher
Modified: 2015-10-02 11:18 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 Martin Entlicher 2015-10-02 08:33:34 UTC
When some tasks are scheduled for a later execution using a delay, then awaitTermination() does not wait for them and returns immediately.

This deficiency forces me to write an ugly reflection code, like http://hg.netbeans.org/core-main/rev/25568e635ba9 (it's a test only) and even that is not reliable.

Javadoc of awaitTermination() does not mention scheduled tasks, thus I suppose that it should wait for all tasks, regardless of their scheduled status.