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 11204 - Java Wizard: Cannot delete fields after reordering
Summary: Java Wizard: Cannot delete fields after reordering
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-09 09:19 UTC by Jan Becicka
Modified: 2007-09-26 09:14 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 Jan Becicka 2001-04-09 09:19:29 UTC
[release32-23]
1. Invoke Java Wizard.
2. In step 4. (Create fields) create 2 fields and reorder them using Up and 
Down buttons.
3. Push Delete -> does not work.

The same problem is in step 6. (Create methods).
Comment 1 Svata Dedic 2001-04-11 10:35:11 UTC
Reassigning back to the shared pool. It should not be probably solved on UI 
level only :-)
Comment 2 Svata Dedic 2001-04-11 10:40:21 UTC
Fixed in dev trunk:
The problem is in the memory representation of ClassElement, which, during 
setFields operation, clones all elements passed to the operation. This will 
delete all existing fields, replacing them with the newly created ones - even 
if the setFields() argument contains some of the existing fields.
I've changed the implementation so that it clones only really new elements and 
reuses old instances when possible.

Pending merge to 3.2
Comment 3 Svata Dedic 2001-04-18 15:47:44 UTC
Merged to 3.2
Comment 4 Jan Becicka 2001-04-27 14:50:31 UTC
[NB3.2.38] Verified
Comment 5 Jan Chalupa 2001-05-05 23:25:17 UTC
Target milestone -> 3.2
Comment 6 Quality Engineering 2003-07-01 13:14:38 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2007-09-20 12:07:04 UTC
Reorganization of java component