首页> 外文会议>IEEE/ACM International Workshop on Refactoring >Code Transformation Issues in Move-Instance-Method Refactorings
【24h】

Code Transformation Issues in Move-Instance-Method Refactorings

机译:移动实例方法重构中的代码转换问题

获取原文

摘要

Refactorings, by definition, preserve the behavior of a target program. Such a strong semantic property is encoded by a set of preconditions for each refactoring. Only if all preconditions are satisfied will a target program be transformed. The code transformation that implements the refactoring follows another set of rules to produce syntactically-correct, refactored code. Consequently, it is easy to believe that most behavior-changing violations in refactorings are induced by incorrect preconditions or lack of required checks. In this paper, however, we show that code transformations for Move-Instance-Method Refactoring available in several popular Java Integrated Development Environments do not preserve program behavior. We report these errors and propose solutions for each identified problem.
机译:根据定义,重构可以保留目标程序的行为。对于每个重构,这样的强大语义属性都由一组前提条件进行编码。只有满足所有前提条件,目标程序才会被转换。实现重构的代码转换遵循另一组规则,以生成语法正确的重构代码。因此,很容易相信,重构中大多数行为改变的违规行为都是由不正确的前提条件或缺乏必要的检查引起的。但是,在本文中,我们证明了在几种流行的Java集成开发环境中可用的用于移动实例方法重构的代码转换不会保留程序行为。我们报告这些错误,并为每个发现的问题提出解决方案。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号