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 33363 - Invalid use of Thread.sleep in DeployProgressMonitor
Summary: Invalid use of Thread.sleep in DeployProgressMonitor
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: _ gfink
URL:
Keywords: PERFORMANCE, THREAD
Depends on:
Blocks:
 
Reported: 2003-05-02 13:17 UTC by _ rkubacki
Modified: 2006-06-05 00:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2003-05-02 13:17:41 UTC
Event listeners must not needlessly delay program
execution. Use of Thread.sleep(400) in
handleProgressEvent is completely wrong as it will
block caller (that might be communicating with
remote client so any delay can be source of troubles).

Also if I use apparent workaround and fire event
asynchronously from newly created Thread or just
by calling RequestProcessor.getDefault.post() it
will not achieve its purpose at all.
Comment 1 Nam Nguyen 2004-01-20 21:56:33 UTC
Remove sleep(400) in handleProgressEvent.