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 190295 - RequesProcessor.scheduleWithFixedDelay do not convert to the correct time unit
Summary: RequesProcessor.scheduleWithFixedDelay do not convert to the correct time unit
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: issues@platform
URL:
Keywords:
: 190363 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-10 14:25 UTC by andvicoso
Modified: 2010-09-16 02:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test file example (591 bytes, text/x-java)
2010-09-14 17:17 UTC, andvicoso
Details
fix code (1.23 KB, text/x-java)
2010-09-14 17:28 UTC, andvicoso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andvicoso 2010-09-10 14:25:39 UTC
When the programmer tries to execute the RequesProcessor.scheduleWithFixedDelay method with initial delay equal to zero its Runnable is called twice.
Comment 1 Stanislav Aubrecht 2010-09-14 14:49:00 UTC
can't reproduce, please attach sample code and reopen, thanks
Comment 2 andvicoso 2010-09-14 17:17:26 UTC
Created attachment 102016 [details]
Test file example
Comment 3 andvicoso 2010-09-14 17:28:37 UTC
Created attachment 102017 [details]
fix code
Comment 4 andvicoso 2010-09-14 17:30:55 UTC
Sorry, first I was wrong. But now I'm sending the test file and the fix code. The problem is that the scheduleWithFixedDelay do not convert to the correct time unit parameter, they have their positions inverted.
Comment 5 andvicoso 2010-09-14 17:31:23 UTC
Sorry, first I was wrong. But now I'm sending the test file and the fix code. The problem is that the scheduleWithFixedDelay do not convert to the correct time unit parameter, they have their positions inverted.
Comment 6 Stanislav Aubrecht 2010-09-15 10:55:39 UTC
thanks for the patch, fixed in core-main 521f069180a4
Comment 7 Stanislav Aubrecht 2010-09-15 10:58:26 UTC
*** Bug 190363 has been marked as a duplicate of this bug. ***
Comment 8 Quality Engineering 2010-09-16 02:56:06 UTC
Integrated into 'main-golden', will be available in build *201009160000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/521f069180a4
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #190295 - invalid task scheduling in scheduleWithFixedDelay