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 202354

Summary: RequestProcessor runs canceled task second time on waitFinished()
Product: platform Reporter: Petr Hrebejk <phrebejk>
Component: -- Other --Assignee: Jaroslav Tulach <jtulach>
Severity: normal    
Priority: P2    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: JUnit test for the bug

Description Petr Hrebejk 2011-09-20 13:14:34 UTC
Created attachment 110911 [details]
JUnit test for the bug

Enough said in the summary. See the attached JUnit test. Stack trace looks like:

at org.openide.util.RequestProcessor$
        at org.openide.util.RequestProcessor$Processor.doEvaluate(
        at org.openide.util.RequestProcessor$Task.waitFinished(
        at oracle.ide.controller.AsynchronousController$TaskInfo.waitFinished(
        at oracle.ide.IdeController.handleExclusive(
        at oracle.ide.IdeController.handleEvent(
        at oracle.ide.controller.AsynchronousController$
        at org.openide.util.RequestProcessor$
        at org.openide.util.RequestProcessor$
Comment 1 Jaroslav Tulach 2011-10-08 20:27:34 UTC
I have probably too fast computer. The test succeeded twice, only then it failed.
Comment 2 Jaroslav Tulach 2011-10-09 20:14:42 UTC
ergonomics#988ee7a54eb3 - let see how many other tests will get broken by these changes.
Comment 3 Quality Engineering 2011-10-15 14:49:01 UTC
Integrated into 'main-golden'
User: Jaroslav Tulach <>
Log: In preparation of #202354: calling cancel second time should return false, as there is nothing to cancel. cancelled task should not be finished.