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

Summary: Invalid use of Thread.sleep in DeployProgressMonitor
Product: serverplugins Reporter: _ rkubacki <rkubacki>
Component: InfrastructureAssignee: _ gfink <gfink>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE, THREAD
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.