On the Association between Code Cloning and Fault-Proneness: An Empirical Investigation

被引:0
|
作者
Elish, Mahmoud O. [1 ]
机构
[1] Gulf Univ Sci & Technol, Comp Sci Dept, Mishref, Kuwait
来源
关键词
Code cloning; fault-proneness; software quality; software metrics; empirical studies;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
During software development projects, the reuse of code fragments with or without modification by copying and pasting is a common practice, which is known as code clones. It has been an arguable issue whether cloning has a harmful impact or not on software development and the quality of the produced software. This paper empirically explores the association between code clones and fault-proneness of object-oriented classes. An empirical investigation was conducted using data from more than 3000 classes in five open source software projects. It was found that classes with clones are significantly more fault-prone than the classes without clones. In addition, the classes with intra-class clones, regardless of whether they also have inter-class clones or not, were found to be significantly more fault-prone than the classes with inter-class clones only. Moreover, among the groups of classes that have only one type of clones, the group of classes with Type II clones was found to be the most fault-prone. Furthermore, the groups of classes that contain more than one type of clones where Type I is among them were found to be more fault-prone than the groups of classes with only one type of clones.
引用
下载
收藏
页码:928 / 935
页数:8
相关论文
共 50 条
  • [1] An empirical evaluation of fault-proneness models
    Denaro, G
    Pezzè, M
    ICSE 2002: PROCEEDINGS OF THE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 2002, : 241 - 251
  • [2] On the Relationship Between Program Evolution and Fault-proneness: An Empirical Study
    Jaafar, Fehmi
    Hassaine, Salima
    Gueheneuc, Yann-Gael
    Hamel, Sylvie
    Adams, Bram
    PROCEEDINGS OF THE 17TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR 2013), 2013, : 15 - 24
  • [3] An investigation of the fault-proneness of clone evolutionary patterns
    Barbour, Liliane
    An, Le
    Khomh, Foutse
    Zou, Ying
    Wang, Shaohua
    SOFTWARE QUALITY JOURNAL, 2018, 26 (04) : 1187 - 1222
  • [4] An investigation of the fault-proneness of clone evolutionary patterns
    Liliane Barbour
    Le An
    Foutse Khomh
    Ying Zou
    Shaohua Wang
    Software Quality Journal, 2018, 26 : 1187 - 1222
  • [5] Empirical Study on the Correlation between Software Structural Modifications and Its Fault-proneness
    Wang, Fei
    Ai, Jun
    Wang, Jiaming
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C), 2017, : 634 - 635
  • [6] Does Code Smell Frequency Have a Relationship with Fault-proneness?
    Rahman, Md. Masudur
    Ahammed, Toukir
    Joarder, Md. Mahbubul Alam
    Sakib, Kazi
    27TH INTERNATIONAL CONFERENCE ON EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING, EASE 2023, 2023, : 261 - 262
  • [7] Empirical analysis of fault-proneness in methods by focusing on their comment lines
    Aman, Hirohisa
    Amasaki, Sousuke
    Sasaki, Takashi
    Kawahara, Minoru
    Proceedings - Asia-Pacific Software Engineering Conference, APSEC, 2014, 2 : 51 - 56
  • [8] An Investigation of Essential Topics on Software Fault-Proneness Prediction
    Lee, Shou-Yu
    Li, Dong
    Li, Yihao
    2016 INTERNATIONAL SYMPOSIUM ON SYSTEM AND SOFTWARE RELIABILITY (ISSSR), 2016, : 37 - 46
  • [9] Investigating the relation between lexical smells and change- and fault-proneness: an empirical study
    Guerrouj, Latifa
    Kermansaravi, Zeinab
    Arnaoudova, Venera
    Fung, Benjamin C. M.
    Khomh, Foutse
    Antoniol, Giuliano
    Gueheneuc, Yann-Gael
    SOFTWARE QUALITY JOURNAL, 2017, 25 (03) : 641 - 670
  • [10] Conditional-based refactorings and fault-proneness: An empirical study
    Counsell, S.
    Gatrell, M.
    Hierons, R.
    Murgia, A.
    Tonelli, R.
    Marchesi, M.
    Concas, G.
    Proceedings - IEEE 6th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2013, 2013, : 80 - 85