Bug#2340: "Delete Method" command not up to par

Petur Runolfsson peturr at rhi.hi.is
Thu Nov 25 19:11:13 UTC 1999


Package: kdevelop
Version: 1.0beta4.1
Severity: normal

Bugreport ID : 11:44,25.11.99

Originator	: Pétur Runólfsson
E-Mail		: peturr at hi.is

Subject : "Delete Method" command not up to par

Error Class	: software bug
Error Location	: class tree
Priority	: medium
Bug Description ---------------------------

The command "Delete Method" from the popup menu in the class tree
sometimes does not always delete the correct data. It fails if the source
file containing the method to be deleted has been modified immediately
before calling "Delete Method".


How to repeat the error -------------------

Take any source file for a class. Select a member function of that
class. Locate the definition of that member function. Add or delete
a few lines above the definition. Right-click on the function in the
class tree and select "Delete Method". KDevelop will proceed to
comment out a piece of the source file the same length as the
selected function, but in the place it was initially (before adding
or deleting lines before the function).

Bugfix or Workaround ----------------------

My guess is that class tree uses an internal database to keep track of
were function definitions can be found and uses information from this
database to determine which lines to comment out. To fix the bug
it would suffice to update this database before deciding which lines
to comment out.

System Information ------------------------

KDevelop version	: 1.0beta4.1
KDE version		: 1.1.2
QT version		: 1.44
OS/Distribution		: Linux (kernel 2.2.5)/Red Hat 6.0
Compiler		: egcs-2.91.66

misc :




More information about the KDevelop-devel mailing list