Song,.pdf (480.08 kB)
Download file

Inferring the data access from the clients of generic APIs

Download (480.08 kB)
conference contribution
posted on 09.11.2012, 12:08 authored by Hui Song, Gang Huang, Yingfei Xiong, Yanchun Sun
Many programs access external data sources through generic APIs. The class hierarchy of such a generic API does not reflect the schema of any particular data source, and thus it is hard to clarify what data an API client accesses and how it obtains them. This makes it difficult to maintain the API clients. In this paper, we show that the data access of an API client can be recovered through static analysis on the client’s source code. We provide a formal and intuitive way to represent the data access, as a graph of so-called summoning snippets. Each snippet stands for a type of data accessed by the client, and carries the code slice from the client about how to obtain the data via the API. We provide an automated approach to inferring a complete and well-simplified set of summoning snippets from the client source code, based on points-to analysis and code slicing.We implement this approach as a development assistant tool, and evaluate it on eight open source data processing programs, with average precision and recall of 89% and 95%, respectively. Further inspection of these clients, as well as a user study about writing data accessing code on their data sources, show that the inference results are useful in the inspection of existing clients and the development of new data access logics.

Funding

Study on Aerodynamic Characteristics Control of Slender Body Using Active Flow Control Technique

Japan Society for the Promotion of Science

Find out more...

The utilization of nitrogen by young angora goats and the influence of protected amino acids on hair and meat production

National Research Foundation

Find out more...

road data.ch

Swiss National Science Foundation

Find out more...

Workshop on the Post- vBNS Computing Research Agenda; January 12-14, 1999; San Diego, CA

Directorate for Computer & Information Science & Engineering

Find out more...

History

Publication

International Conference on Software Maintenance (ICSM2012);

Publisher

IEEE Computer Society

Note

peer-reviewed

Other Funding information

National Natural Science Foundation of China, ERC, NCET, SFI

Rights

“© 2012 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.”

Language

English

Usage metrics

Categories

No categories selected

Exports