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 6808 - Synchronization can overwrite initComponents
Summary: Synchronization can overwrite initComponents
Status: CLOSED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P2 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-06-07 14:42 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 2000-06-07 14:42:12 UTC
1. Create JFrame using New From Template.
2. Change declaration of this class so as to implements some interface. For
example:
public class MyFrame extends javax.swing.JFrame implements MyInterface
3. Use pop-up menu Tools | Synchronize
4. initComponents is offered to update, instead of adding method from interface.
Pressing Process button causes overwrite of initComponents method.
Comment 1 Svata Dedic 2000-06-20 14:28:59 UTC
Methods in guarded blocks will not be overwritten even if confirmed by the user.
However, Synchronization may still propose changing those methods.
Comment 2 Svata Dedic 2000-08-07 14:06:59 UTC
The status is still the same; better resolution is to provide some user
interface to choose the target method among a collection of candidates (+
possible options for candidate selection) or create a new one.
Comment 3 Svata Dedic 2000-11-14 11:03:59 UTC
After the guarded block checking, the bugreport is basically a request for
enhancement in synchronization handling - that is specifically covered in #6323
Comment 4 Quality Engineering 2003-07-01 13:12:18 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 13:17:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.