Empirical Evidence of Large-Scale Diversity in API Usage of Object-Oriented Software
Abstract
In this paper, we study how object-oriented classes are used across thousands of software packages. We concentrate on "usage diversity'", defined as the different statically observable combinations of methods called on the same object. We present empirical evidence that there is a significant usage diversity for many classes. For instance, we observe in our dataset that Java's String is used in 2460 manners. We discuss the reasons of this observed diversity and the consequences on software engineering knowledge and research.
- Publication:
-
arXiv e-prints
- Pub Date:
- July 2013
- DOI:
- 10.48550/arXiv.1307.4062
- arXiv:
- arXiv:1307.4062
- Bibcode:
- 2013arXiv1307.4062M
- Keywords:
-
- Computer Science - Software Engineering
- E-Print:
- International Conference on Source Code Analysis and Manipulation (SCAM'2013), Netherlands (2013)