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 190363 - RequesProcessor.FixedDelayTask class executes twice if initial delay is zero
Summary: RequesProcessor.FixedDelayTask class executes twice if initial delay is zero
Status: RESOLVED DUPLICATE of bug 190295
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 17:49 UTC by andvicoso
Modified: 2010-09-15 10:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code fix (1.38 KB, text/x-java)
2010-09-14 17:49 UTC, andvicoso
Details
test case (599 bytes, text/x-java)
2010-09-14 17:49 UTC, andvicoso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andvicoso 2010-09-14 17:49:12 UTC
Created attachment 102018 [details]
Code fix

RequesProcessor.FixedDelayTask class executes twice if initial delay is zero.
The main problem is that when we first call reschedule, we already ran the Runnable at the method run (line 1218), assuming it is the first run and delay is 0, it will schedule for a new run with 0 delay, running it again.
Comment 1 andvicoso 2010-09-14 17:49:36 UTC
Created attachment 102019 [details]
test case
Comment 2 Stanislav Aubrecht 2010-09-15 10:58:26 UTC

*** This bug has been marked as a duplicate of bug 190295 ***