Authors
Xia Li, Jiajun Jiang, Samuel Benton, Yingfei Xiong, Lingming Zhang
Publication date
2021/4/12
Conference
2021 14th IEEE conference on software testing, verification and validation (ICST)
Pages
241-252
Publisher
IEEE
Description
API misuses are prevalent and extremely harmful. Despite various techniques have been proposed for API-misuse detection, it is not even clear how different types of API misuses distribute and whether existing techniques have covered all major types of API misuses. Therefore, in this paper, we conduct the first large-scale empirical study on API misuses based on 528,546 historical bug-fixing commits from GitHub (from 2011 to 2018). By leveraging a state-of-the-art fine-grained AST differencing tool, GumTree, we extract more than one million bug-fixing edit operations, 51.7% of which are API misuses. We further systematically classify API misuses into nine different categories according to the edit operations and context. We also extract various frequent API-misuse patterns based on the categories and corresponding operations, which can be complementary to existing API-misuse detection tools. Our study reveals …
Total citations
2022202320242105
Scholar articles
X Li, J Jiang, S Benton, Y Xiong, L Zhang - 2021 14th IEEE conference on software testing …, 2021