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

Summary: RequesProcessor.FixedDelayTask class executes twice if initial delay is zero
Product: platform Reporter: andvicoso <andvicoso>
Component: -- Other --Assignee: issues@platform <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Code fix
test case

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 ***