中文版 | English
题名

Will Dependency Conflicts Affect My Program's Semantics?

作者
发表日期
2022-07-01
DOI
发表期刊
ISSN
0098-5589
EISSN
1939-3520
卷号48期号:7页码:2295-2316
摘要

Java projects are often built on top of various third-party libraries. If multiple versions of a library exist on the classpath, JVM will only load one version and shadow the others, which we refer to as dependency conflicts . This would give rise to semantic conflict (SC) issues, if the library APIs referenced by a project have identical method signatures but inconsistent semantics across the loaded and shadowed versions of libraries. SC issues are difficult for developers to diagnose in practice, since understanding them typically requires domain knowledge. Although adapting the existing test generation technique for dependency conflict issues, Riddle , to detect SC issues is feasible, its effectiveness is greatly compromised. This is mainly because Riddle randomly generates test inputs, while the SC issues typically require specific arguments in the tests to be exposed. To address that, we conducted an empirical study of 316 real SC issues to understand the characteristics of such specific arguments in the test cases that can capture the SC issues. Inspired by our empirical findings, we propose an automated testing technique Sensor , which synthesizes test cases using ingredients from the project under test to trigger inconsistent behaviors of the APIs with the same signatures in conflicting library versions. Our evaluation results show that Sensor is effective and useful: it achieved a Precision of 0.898 and a Recall of 0.725 on open-source projects and a Precision of 0.821 on industrial projects; it detected 306 semantic conflict issues in 50 projects, 70.4 percent of which had been confirmed as real bugs, and 84.2 percent of the confirmed issues have been fixed quickly.

关键词
学科领域
计算机软件
学科门类
工学::计算机科学与技术(可授工学、理学学位) ; 工学::软件工程
相关链接[IEEE记录]
收录类别
语种
英语
学校署名
其他
WOS类目
Computer Science, Software Engineering
WOS记录号
WOS:000825974500002
EI入藏号
20210809935896
EI主题词
Libraries ; Open Source Software ; Semantics
EI分类号
Computer Software, Data HAndling And Applications:723 ; Libraries:903.4.1
ESI学科分类
COMPUTER SCIENCE
Scopus记录号
2-s2.0-85100869845
来源库
IEEE
全文链接https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9350237
出版状态
正式出版
引用统计
被引频次[WOS]:12
成果类型期刊论文
条目标识符http://sustech.caswiz.com/handle/2SGJ60CL/221812
专题南方科技大学
工学院_计算机科学与工程系
作者单位
1.Software college, Northeastern University, 1848 Shenyang, Liaoning, China, (e-mail: wangying@swc.neu.edu.cn)
2.Department of Cyber Space Security, Xiamen University, 12466 Xiamen, Fujian, China, (e-mail: wurongxin@xmu.edu.cn)
3.Software College, Northeastern University, 1848 Shenyang, Liaoning, China, (e-mail: wangc_neu@163.com)
4.Cyber Science and Engineering, Huazhong University of Science and Technology, 12443 Wuhan, Hubei, China, 430074 (e-mail: mwenaa@hust.edu.cn)
5.Computer Science and Engineering, Southern University of Science and Technology, 255310 Shenzhen, Guangdong, China, (e-mail: liuyp1@sustech.edu.cn)
6.Department of Computer Science and Engineering, Hong Kong University of Science and Technology, 58207 Kowloon, Hong Kong, China, (e-mail: scc@cse.ust.hk)
7.Software College, Northeastern University, 1848 Shenyang, Liaoning, China, (e-mail: yuhai@mail.neu.edu.cn)
8.Department of Computer Science and Engineering, Nanjing University, 12581 Nanjing, Jiangsu, China, (e-mail: changxu@nju.edu.cn)
9.Software College, Northeastern University, 1848 Shenyang, Liaoning, China, (e-mail: ZHUZhiLiang_NEU@163.com)
推荐引用方式
GB/T 7714
Wang,Ying,Wu,Rongxin,Wang,Chao,et al. Will Dependency Conflicts Affect My Program's Semantics?[J]. IEEE Transactions on Software Engineering,2022,48(7):2295-2316.
APA
Wang,Ying.,Wu,Rongxin.,Wang,Chao.,Wen,Ming.,Liu,Yepang.,...&Zhu,Zhi liang.(2022).Will Dependency Conflicts Affect My Program's Semantics?.IEEE Transactions on Software Engineering,48(7),2295-2316.
MLA
Wang,Ying,et al."Will Dependency Conflicts Affect My Program's Semantics?".IEEE Transactions on Software Engineering 48.7(2022):2295-2316.
条目包含的文件
条目无相关文件。
个性服务
原文链接
推荐该条目
保存到收藏夹
查看访问统计
导出为Endnote文件
导出为Excel格式
导出为Csv格式
Altmetrics Score
谷歌学术
谷歌学术中相似的文章
[Wang,Ying]的文章
[Wu,Rongxin]的文章
[Wang,Chao]的文章
百度学术
百度学术中相似的文章
[Wang,Ying]的文章
[Wu,Rongxin]的文章
[Wang,Chao]的文章
必应学术
必应学术中相似的文章
[Wang,Ying]的文章
[Wu,Rongxin]的文章
[Wang,Chao]的文章
相关权益政策
暂无数据
收藏/分享
所有评论 (0)
[发表评论/异议/意见]
暂无评论

除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。