paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Has My Release Disobeyed Semantic Versioning? Static Detection Based on Semantic Differencing

我的发布是否违反了语义化版本?基于语义差分的静态检测
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 4/10 · 论文属于传统程序分析与静态分析领域,使用语义差分和抽象解释检测 Java 库语义破坏,与用户关注的静态分析技术有方法层面的交集;但未涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,也不是 PL 与 AI 交叉方向,因此匹配度有限。引用 35 inbox
Lyuye Zhang, Chengwei Liu, Zhengzi Xu, Sen Chen, Lingling Fan, Bihuan Chen, Yang Liu
crossref: 2026-09-12

AI 速览

一句话:提出基于语义差分的静态检测方法,用于发现 Java 库升级中签名相同但语义不兼容的语义破坏问题。

Java 第三方库通过 Maven 采用语义化版本(SemVer)来规范版本含义,但即使编译与链接成功,升级后仍可能因语义破坏(SemB)问题出现异常执行或崩溃:用户直接使用的 API 在升级前后签名相同而语义不一致。此类问题难以静态检测,因为 API 内部方法的语义变化不易捕获;动态测试虽能确认部分问题,却受覆盖率不足制约。论文据此提出基于语义差分的静态检测方法,通过比较版本间语义差异来识别违背 SemVer 的发布,从而向开发者和用户发出预警。摘要未给出具体实验结果。

问题
Java 第三方库升级时,用户直接调用的 API 可能签名不变但语义改变,造成语义破坏(SemB),即使编译链接成功也会导致异常或崩溃;现有动态测试受覆盖率限制,难以全面发现。
方法
论文提出基于语义差分的静态检测方法,通过比较库版本间 API 内部方法的语义差异,识别签名相同但语义不一致的 SemB 问题,以判断发布是否违反 SemVer。
评估
摘要未给出具体实验评估,仅以动态测试覆盖不足作为对比动机;未提及数据集、指标或实验结果。
原文摘要(Abstract)

To enhance the compatibility in the version control of Java Third-party Libraries (TPLs), Maven adopts Semantic Versioning (SemVer) to standardize the underlying meaning of versions, but users could still confront abnormal execution and crash after upgrades even if compilation and linkage succeed. It is caused by semantic breaking (SemB) issues, such that APIs directly used by users have identical signatures but inconsistent semantics across upgrades. To strengthen compliance with SemVer rules, developers and users should be alerted of such issues. Unfortunately, it is challenging to detect them statically, because semantic changes in the internal methods of APIs are difficult to capture. Dynamic testing can confirmingly uncover some, but it is limited by inadequate coverage.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7161,
  title = {Has My Release Disobeyed Semantic Versioning? Static Detection Based on Semantic Differencing},
  author = {Lyuye Zhang and Chengwei Liu and Zhengzi Xu and Sen Chen and Lingling Fan and Bihuan Chen and Yang Liu},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3556956}
}