首页> 外文会议>ACM SIGPLAN-SIGSOFT workshop on Program analysis for software tools and engineering >Automatically generating refactorings to support API evolution
【24h】

Automatically generating refactorings to support API evolution

机译:自动生成重构以支持API演变

获取原文

摘要

When library APIs change, client code should change in response, in order to avoid erroneous behavior, compilation failures, or warnings. Previous research has introduced techniques for generating such client refactorings. This paper improves on the previous work by proposing a novel, lightweight technique that takes advantage of information that programmers can insert in the code rather than forcing them to use a different tool to re-express it. The key idea is to replace calls to deprecated methods by their bodies, where those bodies consist of the appropriate replacement code. This approach has several benefits. It requires no change in library development practice, since programmers already adjust method bodies and/or write example code, and there are no new tools or languages to learn. It does not require distribution of new artifacts, and a tool to apply it can be lightweight. We evaluated the applicability of our approach on a number of libraries and found it to to be applicable in more than 75% of the cases.
机译:当库API更改时,客户端代码应响应更改,以避免错误的行为,编译失败或警告。以前的研究引入了用于生成此类客户重构的技术。本文通过提出一种新颖的轻量级技术来提高上一项工作,该技术利用程序员可以在代码中插入的信息而不是强迫他们使用不同的工具来重新表达它。关键的想法是通过身体替换对已弃用方法的调用,其中这些机构由适当的替换代码组成。这种方法有几个好处。它不需要在图书馆开发实践中发生变化,因为程序员已经调整了方法主体和/或写入示例代码,并且没有新的工具或语言来学习。它不需要分发新的工件,并应用它可以轻量级的工具。我们评估了我们对许多图书馆的方法的适用性,并发现它适用于超过75%的案例。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号