• Complex
  • Title
  • Keyword
  • Abstract
  • Scholars
  • Journal
  • ISSN
  • Conference
搜索

Author:

Zhang, Wen (Zhang, Wen.) | Li, Ziqiang (Li, Ziqiang.) | Wang, Qing (Wang, Qing.) | Li, Juan (Li, Juan.)

Indexed by:

EI Scopus SCIE

Abstract:

Context: Bug localization, namely, to locate suspicious snippets from source code files for developers to fix the bug, is crucial for software quality assurance and software maintenance. Effective bug localization technique is desirable for software developers to reduce the effort involved in bug resolution. State-of-the-art bug localization techniques concentrate on file-level coarse-grained localization by lexical matching bug reports and source code files. However, this would bring about a heavy burden for developers to locate feasible code snippets to make change with the goal of fixing the bug. Objective: This paper proposes a novel approach called FineLocator to method-level fine-grained bug localization by using semantic similarity, temporal proximity and call dependency for method expansion. Method: Firstly, the bug reports and the methods of source code are represented by numeric vectors using word embedding (word2vec) and the TF-IDF method. Secondly, we propose three query expansion scores as semantic similarity score, temporal proximity score and call dependency score to address the representation sparseness problem caused by the short lengths of methods in the source code. Then, the representation of a method with short length is augmented by elements of its neighboring methods with query expansion. Thirdly, when a new bug report is incoming, FineLocator will retrieve the methods in source code by similarity ranking on the bug report and the augmented methods for bug localization. Results: We collect bug repositories of ArgoUML, Maven, Kylin, Ant and AspectJ projects to investigate the performance of the proposed FineLocator approach. Experimental results demonstrate that the proposed FineLocator approach can improve the performances of method-level bug localization at average by 20%, 21% and 17% measured by Top-N indicator, MAP and MRR respectively, in comparison with state-of-the-art techniques. Conclusion: This is the first paper to demonstrate how to make use of method expansion to address the representation sparseness problem for method-level fine-grained bug localization.

Keyword:

Query expansion Method-level bug localization Call dependency Temporal proximity Semantic similarity

Author Community:

  • [ 1 ] [Zhang, Wen]Beijing Univ Technol, Coll Econ & Management, Res Base Beijing Modem Mfg Dev, Beijing 100124, Peoples R China
  • [ 2 ] [Zhang, Wen]Xian Univ, Sch Informat Engn, Xian 710065, Shaanxi, Peoples R China
  • [ 3 ] [Li, Ziqiang]Beijing Univ Chem Technol, Ctr Big Data Sci, Beijing 100029, Peoples R China
  • [ 4 ] [Wang, Qing]Chinese Acad Sci, Inst Software, Lab Internet Software Technol, Beijing 100190, Peoples R China
  • [ 5 ] [Li, Juan]Beijing Univ Technol, Coll Software, Beijing 100124, Peoples R China

Reprint Author's Address:

  • [Zhang, Wen]Beijing Univ Technol, Coll Econ & Management, Res Base Beijing Modem Mfg Dev, Beijing 100124, Peoples R China

Show more details

Related Keywords:

Related Article:

Source :

INFORMATION AND SOFTWARE TECHNOLOGY

ISSN: 0950-5849

Year: 2019

Volume: 110

Page: 121-135

3 . 9 0 0

JCR@2022

ESI Discipline: COMPUTER SCIENCE;

ESI HC Threshold:147

JCR Journal Grade:2

Cited Count:

WoS CC Cited Count: 38

SCOPUS Cited Count: 49

ESI Highly Cited Papers on the List: 0 Unfold All

WanFang Cited Count:

Chinese Cited Count:

30 Days PV: 6

Online/Total:970/11000523
Address:BJUT Library(100 Pingleyuan,Chaoyang District,Beijing 100124, China Post Code:100124) Contact Us:010-67392185
Copyright:BJUT Library Technical Support:Beijing Aegean Software Co., Ltd.