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.
[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).
Reassigning back to the shared pool. It should not be probably solved on UI level only :-)
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
Merged to 3.2
[NB3.2.38] Verified
Target milestone -> 3.2
Resolved for 3.4.x or earlier, no new info since then -> closing.
Reorganization of java component