A Preliminary Study on Using Code Smells to Improve Bug LocalizationERA
Bug localization is a technique that has been proposed to support the process of identifying the locations of bugs specified in a bug report. A traditional approach such as information retrieval (IR)-based bug localization calculates the similarity between the bug description and the source code and suggests locations that are likely to contain the bug. However, while many approaches have been proposed to improve the accuracy, the likelihood of each module having a bug is often overlooked or they are treated equally, whereas this may not be the case. For example, modules having code smells have been found to be more prone to changes and faults. Therefore, in this paper, we explore a first step toward leveraging code smells to improve bug localization. By combining the code smell severity with the textual similarity from IR-based bug localization, we can identify the modules that are not only similar to the bug description but also have a higher likelihood of containing bugs. Our preliminary evaluation on four open source projects shows that our technique can improve the baseline approach by 142.25% and 30.50% on average for method and class levels, respectively.
Sun 27 MayDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
11:00 - 12:30 | Clones, Code Smell, Refactoring and MaintenanceTechnical Research at J1 room Chair(s): Hitesh Sajnani Microsoft | ||
11:00 10mShort-paper | Towards Just-In-Time Refactoring Recommenders (ERA)ERA Technical Research Jevgenija Pantiuchina Università della Svizzera italiana, Gabriele Bavota Università della Svizzera italiana (USI), Michele Tufano College of William and Mary, Denys Poshyvanyk William and Mary | ||
11:10 10mShort-paper | Toward Refactoring Evaluation with Code NaturalnessERA Technical Research Pre-print | ||
11:20 10mIndustry talk | How Slim Will My System Be? Estimating Refactored Code Size by Merging ClonesIndustry Track Technical Research Norihiro Yoshida Nagoya University, Takuya Ishizu Osaka University, Buford Edwards Iii Osaka University, Katsuro Inoue Osaka University Link to publication DOI | ||
11:30 10mShort-paper | RepliComment: Identifying Clones in Code CommentsERA Technical Research Arianna Blasi Università della Svizzera italiana (USI) and IMDEA Software Institute, Alessandra Gorla IMDEA Software Institute | ||
11:40 10mShort-paper | A Preliminary Study on Using Code Smells to Improve Bug LocalizationERA Technical Research Aoi Takahashi Tokyo Institute of Technology, Natthawute Sae-Lim Tokyo Institute of Technology, Shinpei Hayashi Tokyo Institute of Technology, Motoshi Saeki Tokyo Institute of Technology DOI Pre-print | ||
11:50 17mFull-paper | Un-Break My Build: Assisting Developers with Build Repair HintsTechnical Research Technical Research Carmine Vassallo University of Zurich, Sebastian Proksch University of Zurich, Timothy Zemp University of Zurich, Harald Gall University of Zurich DOI Pre-print | ||
12:07 17mFull-paper | Aiding Comprehension of Unit Test Cases and Test Suites with Stereotype-based TaggingTechnical Research Technical Research Boyang Li , Christopher Vendome , Mario Linares-Vásquez Systems and Computing Engineering Department , Universidad de los Andes , Bogotá, Colombia , Denys Poshyvanyk William and Mary |