Bug 202354 - RequestProcessor runs canceled task second time on waitFinished()
RequestProcessor runs canceled task second time on waitFinished()
Status: RESOLVED FIXED
Product: platform
Classification: Unclassified
Component: -- Other --
7.1
PC Linux
: P2 (vote)
: 7.1
Assigned To: Jaroslav Tulach
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-20 13:14 UTC by Petr Hrebejk
Modified: 2011-10-15 14:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments
JUnit test for the bug (1.64 KB, text/plain)
2011-09-20 13:14 UTC, Petr Hrebejk
Details

Note You need to log in before you can comment on or make changes to this 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$Task.run(RequestProcessor.java:1424)
        at org.openide.util.RequestProcessor$Processor.doEvaluate(RequestProcessor.java:2019)
        at org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:1659)
        at oracle.ide.controller.AsynchronousController$TaskInfo.waitFinished(AsynchronousController.java:116)
        at oracle.ide.IdeController.handleExclusive(IdeController.java:1222)
        at oracle.ide.IdeController.handleEvent(IdeController.java:1136)
        at oracle.ide.controller.AsynchronousController$AcRunnable.run(AsynchronousController.java:281)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1973)
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'
Changeset: http://hg.netbeans.org/main-golden/rev/07ef3b54c2e1
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: In preparation of #202354: calling cancel second time should return false, as there is nothing to cancel. cancelled task should not be finished.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo