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 13825 - Deadlock & Bugs in adding new field (new method) to source editor
Summary: Deadlock & Bugs in adding new field (new method) to source editor
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 9776 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-07-23 14:58 UTC by pfelenda
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (11.71 KB, text/plain)
2001-11-21 15:13 UTC, Jan Becicka
Details
FTD (Deadlock) (9.76 KB, text/plain)
2001-11-21 16:46 UTC, pfelenda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pfelenda 2001-07-23 14:58:33 UTC
[200107230100]

In explorer click with mouse to some class and expand tree. When you see
tree nodes Fields, Constructors, Methods and Bean Patterns show popup menu on 
Fields node. Than choose "Add Field" from popup menu.

1) bug : in displayed window nammed "Edit new field" is two cursors

Here are three types of behavior by adding bad identifier :

2) bug : a) 1x error dialog is displayed
         b) 2x error dialog is displayed and 
            in source editor is default field created ! 
         c) 3x error dialog is displayed
   There should be the information dialog instead of error message. 
   Detailed descriptions of 2) :
   a) When I typed char '*' to text field named "Name" and click "with mouse" 
      to button "Ok", was error massage displayed.
   b) When I selected text with mouse in text field named "Name" and type
      "Delete" from kyeboard. Than I typed char '*'.When I push down "Enter"
      key were 2 error messages displayed
   c) when I deleted text with "backspace" key, typed char '*' and push down
      "Enter" key, than where 3 error message displayed 
   
      


The same bahavior is with Method node in explorer.
Comment 1 Svata Dedic 2001-07-23 17:41:08 UTC
It's an outstanding issue - how to cancel/validate a Customizer ?
Moving to `ui' subcomponent.
Comment 2 Svata Dedic 2001-09-12 19:16:38 UTC
*** Issue 9776 has been marked as a duplicate of this issue. ***
Comment 3 Svata Dedic 2001-10-08 14:03:32 UTC
Won't be probably fixed in 3.3 release. In the future, I hope that 
we will refrain from using customizers (because of this blurred 
update issues)
Comment 4 pfelenda 2001-11-21 14:42:33 UTC
[200111201425]
Ide freeze when reproducing step 2c)
Comment 5 Jan Becicka 2001-11-21 15:09:36 UTC
JDK_1.4
Comment 6 Jan Becicka 2001-11-21 15:13:18 UTC
Created attachment 3515 [details]
Thread dump
Comment 7 Jan Zajicek 2001-11-21 15:18:21 UTC
Svato, I can confirm the deadlock. I'll attach full thread dump. I
think this should be fixed into 3.3.

Note - running on jdk1.4.0-rc-b86.

Repro - Just write '*' as the new Filed name and press Enter.
Comment 8 Jan Zajicek 2001-11-21 15:25:28 UTC
My ftd is the same as Jan's ;-)
Comment 9 pfelenda 2001-11-21 16:46:01 UTC
Created attachment 3520 [details]
FTD (Deadlock)
Comment 10 pfelenda 2001-11-21 16:47:01 UTC
 I started IDE with -J-Xdebug option and created FTD.
Note : Deadlock on jdk1.4.0-rc-b86
Comment 11 Svata Dedic 2001-11-22 17:51:49 UTC
Fixed in trunk:
/cvs/openide/src/org/openide/src/nodes/ClassCustomizer.java,v  <--  
ClassCustomizer.java
new revision: 1.17; previous revision: 1.16
/cvs/openide/src/org/openide/src/nodes/FieldCustomizer.java,v  <--  
FieldCustomizer.java
new revision: 1.18; previous revision: 1.17
/cvs/openide/src/org/openide/src/nodes/MethodCustomizer.java,v  <--  
MethodCustomizer.java
new revision: 1.17; previous revision: 1.16

Comment 12 Jan Becicka 2001-11-23 14:04:35 UTC
Petr, can you verify it?
Thanks.
Comment 13 pfelenda 2001-11-23 14:36:27 UTC
Verified in [200111230645] on jdk1.4.0_b86,jdk1.4.0_b87.

Note created issue : 18042
(Bugs in adding new field (new method) to source editor)
Comment 14 Quality Engineering 2003-07-01 13:14:53 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 15 Quality Engineering 2007-09-20 09:58:39 UTC
Reorganization of java component