扫描手机二维码

欢迎您的访问
您是第 位访客

开通时间:..

最后更新时间:..

  • 周宇 ( 教授 )

    的个人主页 http://faculty.nuaa.edu.cn/zhouyu/zh_CN/index.htm

  •   教授   博士生导师
  • 招生学科专业:
    计算机科学与技术 -- 【招收硕士研究生】 -- 计算机科学与技术学院
    软件工程 -- 【招收博士、硕士研究生】 -- 计算机科学与技术学院
    网络空间安全 -- 【招收硕士研究生】 -- 计算机科学与技术学院
    电子信息 -- 【招收博士、硕士研究生】 -- 计算机科学与技术学院
论文成果 当前位置: 中文主页 >> 科学研究 >> 论文成果
Analyzing APIs Documentation and Code to Detect Directive Defects

点击次数:
所属单位:计算机科学与技术学院/人工智能学院/软件学院
发表刊物:2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE)
关键字:API documentation static analysis natural language processing
摘要:Application Programming Interface (API) documents represent one of the most important references for API users. However, it is frequently reported that the documentation is inconsistent with the source code and deviates from the API itself. Such inconsistencies in the documents inevitably confuse the API users hampering considerably their API comprehension and the quality of software built from such APIs. In this paper, we propose an automated approach to detect defects of API documents by leveraging techniques from program comprehension and natural language processing. Particularly, we focus on the directives of the API documents which are related to parameter constraints and exception throwing declarations. A first-order logic based constraint solver is employed to detect such defects based on the obtained analysis results. We evaluate our approach on parts of well documented JDK 1.8 APIs. Experiment results show that, out of around 2000 API usage constraints, our approach can detect 1158 defective document directives, with a precision rate of 81.6%, and a recall rate of 82.0%, which demonstrates its practical feasibility.
ISSN号:0270-5257
是否译文:否
发表时间:2017-01-01
合写作者:Gu, Ruihang,Chen, Taolue,黄志球,Panichella, Sebastiano,Gall, Harald
通讯作者:周宇

 

版权所有©2018- 南京航空航天大学·信息化处(信息化技术中心)