paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Do the dependency conflicts in my project matter?

我的项目中的依赖冲突重要吗?
FSE Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2018匹配度 3/10 · 论文属于程序分析与开发者工具方向,研究 Java 依赖冲突的检测与过滤,但未涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,与用户的核心交叉方向匹配度低。其实证研究与工业落地风格虽有一定参考价值,但主题偏离。引用 84 inbox
Ying Wang, Ming Wen, Zhenwei Liu, Rongxin Wu, Rui Wang, Bo Yang, Hai Yu, Zhiliang Zhu, Shing-Chi Cheung
crossref: 2026-09-12

AI 速览

一句话:对真实 Java 项目的依赖冲突进行实证研究并提出自动检测工具 Decca,评估严重性并过滤良性冲突。

Java 项目依赖第三方库时,classpath 上可能出现同一库或类的多个版本;JVM 只加载一个版本,若该版本缺少项目所需方法等特性,就会引发运行时异常,即依赖冲突(DC)问题。现有 Maven 等工具检测到的重复类/库告警可能是良性的,常被开发者忽略。作者对大型开源项目中的真实 DC 问题开展实证研究,总结其表现与修复模式,并据此设计 Decca:自动评估 DC 严重性并过滤良性告警。在 30 个项目上,Decca 检测高严重性 DC 问题的精确率为 0.923、召回率为 0.766,还发现新问题;提交 20 份报告,11 份被确认,6 份按建议补丁修复。

问题
Java 项目 classpath 上的多版本依赖可能导致运行时异常,但现有构建工具对重复类/库的告警常为良性,开发者难以判断哪些依赖冲突真正重要。
方法
对开源项目中的真实 DC 问题做实证研究,提炼表现与修复模式,并实现自动检测工具 Decca,通过评估冲突严重性过滤良性实例。
评估
在 30 个真实项目上评估,Decca 检测高严重性 DC 问题取得 0.923 精确率和 0.766 召回率,并提交 20 份缺陷报告,其中 11 份被确认、6 份被修复。
原文摘要(Abstract)

Intensive dependencies of a Java project on third-party libraries can easily lead to the presence of multiple library or class versions on its classpath. When this happens, JVM will load one version and shadows the others. Dependency conflict (DC) issues occur when the loaded version fails to cover a required feature (e.g., method) referenced by the project, thus causing runtime exceptions. However, the warnings of duplicate classes or libraries detected by existing build tools such as Maven can be benign since not all instances of duplication will induce runtime exceptions, and hence are often ignored by developers. In this paper, we conducted an empirical study on real-world DC issues collected from large open source projects. We studied the manifestation and fixing patterns of DC issues. Based on our findings, we designed Decca, an automated detection tool that assesses DC issues' severity and filters out the benign ones. Our evaluation results on 30 projects show that Decca achieves a precision of 0.923 and recall of 0.766 in detecting high-severity DC issues. Decca also detected new DC issues in these projects. Subsequently, 20 DC bug reports were filed, and 11 of them were confirmed by developers. Issues in 6 reports were fixed with our suggested patches.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4669,
  title = {Do the dependency conflicts in my project matter?},
  author = {Ying Wang and Ming Wen and Zhenwei Liu and Rongxin Wu and Rui Wang and Bo Yang and Hai Yu and Zhiliang Zhu and Shing-Chi Cheung},
  booktitle = {FSE},
  year = {2018},
  doi = {10.1145/3236024.3236056}
}