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 51609

Summary: Deadlock while invoking the import tool
Product: editor Reporter: Jan Chalupa <jchalupa>
Component: -- Other --Assignee: Dusan Balek <dbalek>
Status: CLOSED FIXED    
Severity: blocker CC: mmetelka, mroskanin, tor
Priority: P1    
Version: 4.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump

Description Jan Chalupa 2004-11-17 18:36:53 UTC
Reported by a NB 4.0 user. Build number unknown at
the moment.

Thread dump attached. See issue #51460 for another
deadlock in editor fixed just recently.
Comment 1 Jan Chalupa 2004-11-17 18:37:25 UTC
Created attachment 18935 [details]
Thread dump
Comment 2 Jan Chalupa 2004-11-18 08:58:32 UTC
Dusan, please evaluate. Thanks.
Comment 3 Dusan Balek 2004-11-18 11:25:26 UTC
An easy fix would be posting ToolTipSupport.setToolTipText(...) to run
from the AWT event queue. Also, starting a MDR transaction from the
AWT event queue in NbJavaJMIFastImport.findClasses(...) is not right,
as it can represent a potential performance problem.
Comment 4 Dusan Balek 2004-11-18 11:44:03 UTC
ToolTipSupport fixed in [maintrunk].

Checking in ToolTipSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/ToolTipSupport.java,v  <--
 ToolTipSupport.java
new revision: 1.25; previous revision: 1.24
done
Comment 5 Jan Chalupa 2004-11-18 15:43:47 UTC
Please prepare a fix for 4.0. Thanks.
Comment 6 Dusan Balek 2004-11-18 17:30:11 UTC
Mila or Mato, could you please review the patch.

Visaul diff:
http://editor.netbeans.org/source/browse/editor/libsrc/org/netbeans/editor/ext/ToolTipSupport.java.diff?r1=1.24&r2=1.25

Raising priority.
Comment 7 Martin Roskanin 2004-11-19 08:01:38 UTC
the fix is ok
Comment 8 Dusan Balek 2004-11-19 12:32:49 UTC
Integrated into [release40].

Checking in ToolTipSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/ToolTipSupport.java,v  <--
 ToolTipSupport.java
new revision: 1.24.4.1; previous revision: 1.24
done
Comment 9 Roman Strobl 2005-07-14 13:21:00 UTC
Verified, no sings of this deadlock since it was fixed.