周宇   

Professor
Supervisor of Doctorate Candidates

MORE>
Language:English

Paper Publications

Title of Paper:Analyzing APIs Documentation and Code to Detect Directive Defects

Hits:

Affiliation of Author(s):计算机科学与技术学院/人工智能学院/软件学院

Journal:2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE)

Key Words:API documentation static analysis natural language processing

Abstract: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 No.:0270-5257

Translation or Not:no

Date of Publication:2017-01-01

Co-author:Gu, Ruihang,Chen, Taolue,Huang ZhiQiu,Panichella, Sebastiano,Gall, Harald

Correspondence Author:Zhou Yu

Copyright©2018- Nanjing University of Aeronautics and Astronautics·Informationization Department(Informationization Technology Center)
Click:    MOBILE Version

Open time:..

The Last Update Time: ..