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 May Times are displayed in 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 SajnaniMicrosoft | |||
11:00 - 11:10 Short-paper | Towards Just-In-Time Refactoring Recommenders (ERA)ERA Technical Research Jevgenija PantiuchinaUniversità della Svizzera italiana, Gabriele BavotaUniversità della Svizzera italiana (USI), Michele TufanoCollege of William and Mary, Denys PoshyvanykWilliam and Mary | ||
11:10 - 11:20 Short-paper | Toward Refactoring Evaluation with Code NaturalnessERA Technical Research Pre-print | ||
11:20 - 11:30 Industry talk | How Slim Will My System Be? Estimating Refactored Code Size by Merging ClonesIndustry Track Technical Research Norihiro YoshidaNagoya University, Takuya IshizuOsaka University, Buford Edwards IiiOsaka University, Katsuro InoueOsaka University Link to publication DOI | ||
11:30 - 11:40 Short-paper | RepliComment: Identifying Clones in Code CommentsERA Technical Research Arianna BlasiUniversità della Svizzera italiana (USI) and IMDEA Software Institute, Alessandra GorlaIMDEA Software Institute | ||
11:40 - 11:50 Short-paper | A Preliminary Study on Using Code Smells to Improve Bug LocalizationERA Technical Research Aoi TakahashiTokyo Institute of Technology, Natthawute Sae-LimTokyo Institute of Technology, Shinpei HayashiTokyo Institute of Technology, Motoshi SaekiTokyo Institute of Technology DOI Pre-print | ||
11:50 - 12:07 Full-paper | Un-Break My Build: Assisting Developers with Build Repair HintsTechnical Research Technical Research Carmine VassalloUniversity of Zurich, Sebastian ProkschUniversity of Zurich, Timothy ZempUniversity of Zurich, Harald GallUniversity of Zurich DOI Pre-print | ||
12:07 - 12:24 Full-paper | Aiding Comprehension of Unit Test Cases and Test Suites with Stereotype-based TaggingTechnical Research Technical Research Boyang Li, Christopher Vendome, Mario Linares-VásquezSystems and Computing Engineering Department , Universidad de los Andes , Bogotá, Colombia , Denys PoshyvanykWilliam and Mary |