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 11750 - Java class and interface do not stay in synch
Summary: Java class and interface do not stay in synch
Status: CLOSED DUPLICATE of bug 11720
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-25 18:32 UTC by Chris Webster
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

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 Chris Webster 2001-04-25 18:32:00 UTC
The test case below describes a problem where the method propagation causes a
class and the interface it implements get out of synch.

The problem may be reproduced by performing the following steps:
1. Create a java class
2. create an interface containing public void a(int i);
3. Make the class created in 1 implement the interface from step 2
4. say perform all changes without prompt during the dialog
5. copy and paste the method in the interface, there should be two identical
methods. Wait until the two methods show up in the explorer
6. Change the last method added to be public void a(String i);
7. The interface and the class are now out of synch the class has the method
changed from public void a(int i) to public void a(String i), so there is only
one method in the class instead of two.

If another method say public void b() is added the class will add the new
method.
Comment 1 Svata Dedic 2001-04-26 07:41:42 UTC
This is clearly a consequence of #11720. I doubt that this can be solved 
without major performance penalty - checking for duplicate methods in the 
connection event source on each change or addition ?


*** This issue has been marked as a duplicate of 11720 ***
Comment 2 Svata Dedic 2001-04-26 07:45:57 UTC
I would lower the priority of this bug and the #11720 as well, if you don't 
mind. I don't know how it affects your work with the IDE, or whether it 
prevents your module/extension from working. I doubt that the bug happens in 
almost every IDE session, From my point of view, it is really a minor issue 
and does not deserve a P-2 bug. Many other issues on the list should be 
reprioritized, BTW.
Comment 3 Quality Engineering 2003-07-01 13:12:26 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 13:17:37 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.