Automatic Detection and Repair Recommendation of Directive Defects in Java API Documentation
Automatic Detection and Repair Recommendation of Directive Defects in Java API Documentation
复制标题
Java API文档中指令缺陷的自动检测和修复建议
DOI:
10.1109/tse.2018.2872971
复制
发表时间:
2020-09
影响因子:
7.4
通讯作者:
Harald Gall
中科院分区:
文献类型:
--
作者:
Yu Zhou;Changzhi Wang;Xin Yan;Taolue Chen;Sebastiano Panichella;Harald Gall
Application Programming Interfaces (APIs) represent key tools for software developers to build complex software systems. However, several studies have revealed that even major API providers tend to have incomplete or inconsistent API documentation. This can severely hamper the API comprehension and, as a consequence, the quality of the software built on them. In this paper, we propose DRONE (Detect and Repair of dOcumentatioN dEfects), a framework to automatically detect and repair defects from API documents by leveraging techniques from program analysis, natural language processing, and constraint solving. Specifically, we target at the directives of API documents, which are related to parameter constraints and exception handling declarations. Furthermore, in presence of defects, we also provide a prototypical repair recommendation system. We evaluate our approach on parts of the well-documented APIs of JDK 1.8 APIs (including javaFX) and Android 7.0 (level 24). Across the two empirical studies, our approach can detect API defects with an average F-measure of 79.9, 71.7, and 81.4 percent, respectively. The API repairing capability has also been evaluated on the generated recommendations in a further experiment. User judgments indicate that the constraint information is addressed correctly and concisely in the rendered directives.
登录
查看更多内容
DOI:
10.1109/icpc.2013.6613842
发表时间:
2013-05
期刊:
2013 21st International Conference on Program Comprehension (ICPC)
影响因子:
--
作者:
Yingying Zhang;Daqing Hou
通讯作者:
Yingying Zhang;Daqing Hou
DOI:
10.1145/2597008.2597799
发表时间:
2014-06
期刊:
--
影响因子:
--
作者:
Carmine Vassallo;Sebastiano Panichella;M. D. Penta;G. Canfora
通讯作者:
Carmine Vassallo;Sebastiano Panichella;M. D. Penta;G. Canfora
DOI:
10.1109/ase.2009.94
发表时间:
2009-11
期刊:
2009 IEEE/ACM International Conference on Automated Software Engineering
影响因子:
--
作者:
Hao Zhong;Lu Zhang;Tao Xie;Hong Mei
通讯作者:
Hao Zhong;Lu Zhang;Tao Xie;Hong Mei
DOI:
10.3115/974147.974178
发表时间:
2000-03
期刊:
--
影响因子:
--
作者:
T. Brants
通讯作者:
T. Brants
DOI:
10.1109/icst.2012.106
发表时间:
2012-01
期刊:
2012 IEEE Fifth International Conference on Software Testing, Verification and Validation
影响因子:
--
作者:
Shin Hwei Tan;D. Marinov;Lin Tan;G. Leavens
通讯作者:
Shin Hwei Tan;D. Marinov;Lin Tan;G. Leavens