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 30641 - When adding a method, other methods get bodged
Summary: When adding a method, other methods get bodged
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: Other Other
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-04 11:04 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 2003-02-04 11:04:08 UTC
Description: 
When I add a new method, the editor bodges up all my code. It replicates the
new method to methods below it, and then changes other methods to methods
below that.

The code I use doesn't use fully-qualified package names, but imports instead.
For exmaple:

/** comment */
public void dostuff(String arg) throws RemoteException

/** just added this method */
public boolean dostuff2(String arg2, int a) throws RemoteException

/** comment */
public int dostuff3(int a) throws RemoteException

becomes

/** comment */
public void dostuff(String arg) throws RemoteException

/** just added this method */
public boolean dostuff2(String arg2, int a) throws RemoteException

/** comment */
public int dostuff2(String arg2, int a) throws RemoteException

Something like that. Now how do I remember the real names of the methods?
Do I have to test all my code again? No, lucky I have backups.

A comment.
Comment 1 Jan Becicka 2003-02-04 11:14:29 UTC
Trensfered from bugtraq. I cannot reproduce it.
Comment 2 Svata Dedic 2003-02-06 18:36:27 UTC
Neither can I - in recent dev builds. 
IIRC FFJ 4.0 was based on NB-3.2, and the code generator was quite 
changed from that time. 
If the thing happens again, please do immediately "Undo" to get the 
text to the original state, wait for 10 seconds and try again. If the bug 
occurs again, reopen this issue and attach the source file or mail it to 
me. 
Comment 3 Jan Becicka 2003-07-11 09:36:38 UTC
As I mentioned before, I cannot reproduce it.