首页> 外文会议>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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号