The bug location process aims to identify source code artifacts associated with reported bugs. Manual bug location is burdensome for programmers who must reproduce and analyze the bug to identify the defective artifact and perform necessary maintenance. Bug locating techniques classify and identify project-specific source code artifacts, narrowing the search space. These techniques often use machine learning methods, such as textual similarity, classification algorithms, and grouping of source code files based on bug report data. This paper proposes a bug location model that leverages semantic architectural knowledge through ontologies to infer new knowledge and retrieve information from bug reports. The model’s performance is evaluated on six relevant open-source projects in C Sharp (AutoMapper, MsBuild, EfCore, AspNetCore, MQTTnet, and NLog). Experiments utilize the evaluation metrics Top N Rank of Files (TNRF), Mean Reciprocal Rank (MRR), and Mean Average Precision (MAP). The results demonstrate the significant efficacy of the proposed model. The model contributes to relieving the manual burden on programmers and enhances bug localization accuracy and efficiency by integrating architectural semantic knowledge represented through ontologies with machine learning. The evaluation results indicate the potential of the proposed model for improving the bug-fixing process in software development.
- Alisson Solitto Da Silva
- Rogério Eduardo Garcia
- Leonardo Castro Botega
Programa de Pós-Graduação em Ciência da Computação, Universidade Estadual Paulista Júlio de Mesquita Filho (UNESP) - Presidente Prudente, São Paulo, Brasil
- Journal: IEEE Access
- Published in: IEEE Access ( Volume: 11)
- DOI: 10.1109/ACCESS.2023.3313598
- Date of Publication: 11 September 2023
- Bug location
- Ontology
- Software engineering
- Software maintenance
A. S. da Silva, R. E. Garcia and L. C. Botega, "Bug Localization Model in Source Code Using Ontologies," in IEEE Access, vol. 11, pp. 98542-98557, 2023, doi: 10.1109/ACCESS.2023.3313598.
@ARTICLE{10246255,
author={da Silva, Alisson Solitto and Garcia, Rogério Eduardo and Botega, Leonardo Castro},
journal={IEEE Access},
title={Bug Localization Model in Source Code Using Ontologies},
year={2023},
volume={11},
number={},
pages={98542-98557},
doi={10.1109/ACCESS.2023.3313598}
}