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 61375 - Deadlock when pressing dot in code completion
Summary: Deadlock when pressing dot in code completion
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
: 61955 62839 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-25 17:39 UTC by Roman Strobl
Modified: 2007-11-05 13:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Deadlock (12.77 KB, text/plain)
2005-07-25 17:41 UTC, Roman Strobl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Strobl 2005-07-25 17:39:11 UTC
[NetBeans 200507191800; WinXP; JDK 1.5.0_04]

Issue Summary:
--------------
Deadlock occurs when letting completion fill in methods automatically by
pressing dot. I can reproduce it on following obscure code but it could happen
in less obscure cases as well.

Steps to reproduce:
-------------------
1. Create a new Java class.
2. Write following code into constructor:
   getClass().|
3. Invoke code completion.
4. Keep pressing '.' until you get a deadlock.
-> The deadlock occurs on following code:
   getClass().asSubclass(clone().equals(|).).

Attaching thread dump.
Comment 1 Roman Strobl 2005-07-25 17:41:33 UTC
Created attachment 23275 [details]
Deadlock
Comment 2 Martin Roskanin 2005-08-10 16:22:49 UTC
*** Issue 61955 has been marked as a duplicate of this issue. ***
Comment 3 Martin Roskanin 2005-08-10 16:23:41 UTC
Should be fixed to nb 4.2
Comment 4 Martin Roskanin 2005-08-23 12:54:26 UTC
*** Issue 62839 has been marked as a duplicate of this issue. ***
Comment 5 Pavel Flaska 2005-09-06 13:58:00 UTC
Checking in
completion/src/org/netbeans/modules/editor/completion/CompletionImpl.java;
/cvs/editor/completion/src/org/netbeans/modules/editor/completion/CompletionImpl.java,v
 <--  CompletionImpl.java
new revision: 1.10; previous revision: 1.9
done
Comment 6 Roman Strobl 2005-10-07 15:08:11 UTC
I haven't seent the deadlock recently. Verified.