Error detection by refactoring reconstruction

TitleError detection by refactoring reconstruction
Publication TypeConference Paper
Year of Publication2005
AuthorsGörg, C, Weißgerber, P
Secondary TitleProceedings of the 2005 international workshop on Mining software repositories
Pagination29-33
PublisherACM
Place PublishedNew York, NY, USA
ISBN Number1-59593-123-6
Keywordsbugs, class, inheritance, jedit, refactoring, tomcat
Abstract

In many cases it is not sufficient to perform a refactoring only at one location of a software project. For example, refactorings may have to be performed consistently to several classes in the inheritance hierarchy, e.g. subclasses or implementing classes, to preserve equal behavior.In this paper we show how to detect incomplete refactorings - which can cause long standing bugs because some of them do not cause compiler errors - by analyzing software archives. To this end we reconstruct the class inheritance hierarchies, as well as refactorings on the level of methods. Then, we relate these refactorings to the corresponding hierarchy in order to find missing refactorings and thus, errors and inconsistencies that have been introduced in a software project at some point of the history.Finally. we demonstrate our approach by case studies on two open source projects.

URLhttp://doi.acm.org/10.1145/1082983.1083148
DOI10.1145/1082983.1083148
Full Text
AttachmentSize
PDF icon 29ErrorDetection.pdf6.69 MB