首页> 外文会议>IEEE International Conference on Software Maintenance >Identifying overly strong conditions in refactoring implementations
【24h】

Identifying overly strong conditions in refactoring implementations

机译:在重构实现中识别过度强大的条件

获取原文

摘要

Each refactoring implementation must check a number of conditions to guarantee behavior preservation. However, specifying and checking them are difficult. Sometimes refactoring tool developers may define overly strong conditions that prevent useful behavior-preserving transformations to be performed. We propose an approach for identifying overly strong conditions in refactoring implementations. We automatically generate a number of programs as test inputs for refactoring implementations. Then, we apply the same refactoring to each test input using two different implementations, and compare both results. We use Safe Refactor to evaluate whether a transformation preserves behavior. We evaluated our approach in 10 kinds of refactorings for Java implemented by three tools: Eclipse and Netbeans, and the JastAdd Refactoring Tool (JRRT). In a sample of 42,774 transformations, we identified 17 and 7 kinds of overly strong conditions in Eclipse and JRRT, respectively.
机译:每个重构实现必须检查许多条件以保证行为保存。但是,指定和检查它们很难。有时重构工具开发人员可以定义过度强大的条件,以防止要执行有用的行为保留的转换。我们提出了一种识别重构实施方面的过度强大条件的方法。我们自动生成多个程序作为用于重构实现的测试输入。然后,我们使用两个不同的实现对每个测试输入应用相同的重构,并比较两个结果。我们使用安全的重构来评估转换是否保留行为。我们在三种工具实现的Java中评估了我们的方法:Eclipse和NetBeans以及Jastadd重构工具(JRRT)。在42,774个转化的样本中,我们分别在Eclipse和JRRT中确定了17种和7种过度强大的条件。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号