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.
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.
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 ***
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.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.