[Paper Review] An Empirical Study of Usages, Updates and Risks of Third-Party Libraries in Java Projects
This paper presents a large-scale empirical study of third-party library usage, updates, and risks in 806 Java open-source projects, analyzing 13,565 libraries to reveal widespread outdated library usage and delayed updates. It proposes a bug-driven alerting system that identifies risky, outdated library versions using fine-grained API call graph analysis, demonstrating that 31.6% of popular library releases contain severe bugs and that developers often lack actionable signals to update them confidently.
Third-party libraries are a central building block to develop software systems. However, outdated third-party libraries are commonly used, and developers are usually less aware of the potential risks. Therefore, a quantitative and holistic study on usages, updates and risks of third-party libraries can provide practical insights to improve the ecosystem sustainably. In this paper, we conduct such a study in the Java ecosystem. Specifically, we conduct a library usage analysis (e.g., usage intensity and outdatedness) and a library update analysis (e.g., update intensity and delay) using 806 open-source projects. The two analyses aim to quantify usage and update practices holistically from the perspective of both open-source projects and third-party libraries. Then, we conduct a library risk analysis (e.g., potential risk and developer response) in terms of bugs with 15 popularly-used third-party libraries. This analysis aims to quantify the potential risk of using outdated libraries and the developer response to the risk. Our findings from the three analyses provide practical insights to developers and researchers on problems and potential solutions in maintaining third-party libraries (e.g., smart alerting and automated updating of outdated libraries). To demonstrate the usefulness of our findings, we propose a bug-driven alerting system for assisting developers to make confident decisions in updating third-party library versions. We have released our dataset to foster valuable applications and improve the ecosystem.
Motivation & Objective
- To understand the real-world usage and update patterns of third-party libraries in Java open-source projects.
- To quantify the risks associated with outdated library versions, particularly non-security bugs that may still impact system stability.
- To address the lack of actionable, fine-grained alerts that help developers decide when and whether to update libraries.
- To provide empirical evidence and practical insights for improving library maintenance and ecosystem sustainability.
- To develop and demonstrate a prototype alerting system that prioritizes risk-aware updates based on actual code impact.
Proposed method
- Conducted a quantitative analysis of library usage and update practices across 806 open-source Java projects and 13,565 third-party libraries.
- Built a versioned, ecosystem-level call graph to trace API usage and identify whether buggy or changed methods are actually called in projects.
- Performed a mixed-methods risk analysis: quantitative analysis of 15 popular libraries’ release history and bug reports, complemented by a human study on developer responses.
- Designed a prototype alerting system that flags outdated library versions based on the presence of severe, non-security bugs that are actually used in projects.
- Used static and dynamic analysis techniques to assess whether changes in library versions (e.g., bug fixes, API changes) are semantically relevant to project code.
- Integrated findings into a practical system that provides developers with convincing, fine-grained signals to guide update decisions.
Experimental results
Research questions
- RQ1RQ1: What is the usage intensity and usage outdatedness of third-party libraries in Java projects?
- RQ2RQ2: What is the update intensity and update delay of third-party libraries across projects?
- RQ3RQ3: What is the potential risk of using outdated third-party libraries, and how do developers respond to such risks?
- RQ4RQ4: How can we build a practical alerting system that helps developers make informed decisions about updating buggy library versions?
Key findings
- 77.4% of third-party libraries are used in only one open-source project, indicating high fragmentation and low reuse.
- 60.0% of libraries have at most 2% of their APIs called across all projects, suggesting that most library functionality remains unused.
- 38.0% of projects use libraries that are more than 10 versions behind the latest release, indicating widespread outdatedness.
- 54.9% of projects leave more than half of their library dependencies un-updated, highlighting poor maintenance practices.
- 50.5% of projects have an average update delay of over 60 days, revealing significant delays in adopting newer, potentially safer versions.
- 31.6% of version releases for 15 popular libraries contain severe bugs, and many of these bugs are actually triggered in real projects, underscoring the risk of outdated versions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.