An Empirical Study of Usages, Updates and Risks of Third-Party Libraries in Java Projects
Authors:
- 1 September 2020
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 35-45
Abstract
Third-party libraries play a key role in software development as they can relieve developers of the heavy burden of re-implementing common functionalities. However, third-party libraries and client projects evolve asynchronously. As a result, out-dated third-party libraries might be used in client projects while developers are not aware of the potential risk (e.g., security bug). Outdated third-party libraries may be updated in client projects in a delayed way, and developers may be less aware of the potential risk (e.g., API incompatibility) in updates. Developers of third-party libraries may be unaware of how their third-party libraries are used or updated in client projects. Therefore, a quantitative and holistic study on usages, updates and risks of third-party libraries in open-source projects can provide concrete evidences on these problems, and practical insights to improve the ecosystem.In this paper, we contribute such a study in Java ecosystem. In particular, we conduct a library usage analysis (e.g., usage intensity and outdatedness) and library update analysis (e.g., update intensity and delay) on 806 open-source projects and 13,565 third- party libraries. Then, we carry out a library risk analysis (e.g., usage risk and update risk) on 806 open-source projects and 544 security bugs. These analyses aim to quantify the usage and update practices and the potential risk of using and updating outdated third-party libraries with respect to security bugs from two holistic perspectives (i.e., open-source projects and third-party libraries). Our findings suggest practical implications to developers and researchers on problems and potential solutions in maintaining third-party libraries (e.g., smart alerting and automated updating of outdated third-party libraries). To indicate the usefulness of our findings, we design a smart alerting system for assisting developers to make confident decisions when updating third-party libraries. 33 and 24 open-source projects have confirmed and updated third-party libraries after receiving our alerts.Keywords
Funding Information
- National Natural Science Foundation of China
This publication has 45 references indexed in Scilit:
- LibRadar2016
- Understanding the API usage in JavaInformation and Software Technology, 2016
- An Empirical Study on the Reuse of Third-Party Libraries in Open-Source Software Development2015
- Impact assessment for vulnerabilities in open-source software libraries2015
- Apiwave: Keeping track of API popularity and migration2015
- Measuring Dependency Freshness in Software Systems2015
- Tracking known security vulnerabilities in proprietary software systems2015
- How the Apache community upgrades dependencies: an evolutionary studyEmpirical Software Engineering, 2014
- Multi-dimensional exploration of API usage2013
- Mining API PopularityLecture Notes in Computer Science, 2010