跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2412.08041 (cs)
[提交于 2024年12月11日 (v1),最后修订于 2025年4月21日 (此版本, v4)]

标题:Quantifying the benefits of code hints for refactoring deprecated Java APIs

作者:Cristina David, Pascal Kesseli, Daniel Kroening, Hanliang Zhang
查看论文《Quantifying the benefits of code hints for refactoring deprecated Java APIs》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:When done manually, refactoring legacy code in order to eliminate uses of deprecated APIs is an error-prone and time-consuming process. In this paper, we investigate to which degree refactorings for deprecated Java APIs can be automated, and quantify the benefit of Javadoc code hints for this task. To this end, we build a symbolic and a neural engine for the automatic refactoring of deprecated APIs. The former is based on type-directed and component-based program synthesis, whereas the latter uses LLMs. We applied our engines to refactor the deprecated methods in the Oracle JDK 15. Our experiments show that code hints are enabling for the automation of this task: even the worst engine correctly refactors 71% of the tasks with code hints, which drops to at best 14% on tasks without. Adding more code hints to Javadoc can hence boost the refactoring of code that uses deprecated APIs.
主题: 软件工程 (cs.SE)
引用方式: arXiv:2412.08041 [cs.SE]
  (或者 arXiv:2412.08041v4 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2412.08041
期刊参考: 33rd ACM International Conference on the Foundations of Software Engineering (FSE Companion '25), June 23--28, 2025, Trondheim, Norway
相关 DOI: https://doi.org/10.1145/3696630.3728567

提交历史

来自:Hanliang Zhang
[v1] 2024年12月11日 星期三 02:44:14 UTC
[v2] 2025年2月11日 星期二 16:22:24 UTC
[v3] 2025年4月18日 星期五 03:23:33 UTC
[v4] 2025年4月21日 星期一 10:30:34 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-04
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站