首页> 外文期刊>Electronic Communications of the EASST >Late Propagation in Near-Miss Clones: An Empirical Study
【24h】

Late Propagation in Near-Miss Clones: An Empirical Study

机译:近无克隆克隆的后期传播:一项实证研究

获取原文
获取外文期刊封面目录资料

摘要

If two or more code fragments in the code-base of a software system are exactly or nearly similar to one another, we call them code clones. It is often important that updates (i.e., changes) in one clone fragment should be propagated to the other similar clone fragments to ensure consistency. However, if there is a delay in this propagation because of unawareness, the system might behave inconsistently. This delay in propagation, also known as late propagation, has been investigated by a number of existing studies. However, the existing studies did not investigate the intensity as well as the effect of late propagation in different types of clones separately. Also, late propagation in Type 3 clones is yet to investigate. In this research work we investigate late propagation in three types of clones (Type 1, Type 2, and Type 3) separately. According to our experimental results on six subject systems written in three programming languages, late propagation is more intense in Type 3 clones compared to the other two clone-types. Block clones are mostly involved in late propagation instead of method clones. Refactoring of block clones can possibly minimize late propagation. If not refactorable, then the clones that often need to be changed together consistently should be placed in close proximity to one another.
机译:如果一个软件系统的代码库中的两个或多个代码片段彼此完全相同或几乎相似,我们称它们为代码克隆。通常重要的是,一个克隆片段中的更新(即更改)应传播到其他类似克隆片段中,以确保一致性。但是,如果由于不了解而导致传播延迟,则系统的行为可能会不一致。传播的这种延迟(也称为后期传播)已由许多现有研究进行了研究。但是,现有研究并未分别研究不同类型克隆的强度以及后期繁殖的影响。同样,尚未研究在3型克隆中的后期繁殖。在这项研究工作中,我们分别研究了三种类型的克隆(类型1,类型2和类型3)的后期繁殖。根据我们在以三种编程语言编写的六个主题系统上的实验结果,与其他两个克隆类型相比,类型3克隆的后期传播更为激烈。块克隆主要涉及后期繁殖,而不是方法克隆。块克隆的重构可以使后期传播最小化。如果无法重构,则经常需要始终保持一致变化的克隆应放置在彼此靠近的位置。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号