Code Clones in Feature-Oriented Software Product Lines

被引:3
|
作者
Schulze, Sandro [1 ]
Apel, Sven [2 ]
Kaestner, Christian [3 ]
机构
[1] Univ Magdeburg, D-39106 Magdeburg, Germany
[2] Univ Passau, Passau, Germany
[3] Univ Marburg, D-35032 Marburg, Germany
基金
欧洲研究理事会;
关键词
Design; languages; measurements; Code clones; software product lines; feature-oriented programming; refactoring; SYSTEMS;
D O I
10.1145/1942788.1868310
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Some limitations of object-oriented mechanisms are known to cause code clones (e. g., extension using inheritance). Novel programming paradigms such as feature-oriented programming (FOP) aim at alleviating these limitations. However, it is an open issue whether FOP is really able to avoid code clones or whether it even facilitates (FOP-related) clones. To address this issue, we conduct an empirical analysis on ten feature-oriented software product lines with respect to code cloning. We found that there is a considerable number of clones in feature-oriented software product lines and that a large fraction of these clones is FOP-related (i.e., caused by limitations of feature-oriented mechanisms). Based on our results, we initiate a discussion on the reasons for FOP-related clones and on how to cope with them. We show by means of examples how such clones can be removed by applying refactorings.
引用
收藏
页码:103 / 112
页数:10
相关论文
共 50 条
  • [1] Mutation Operators for Feature-Oriented Software Product Lines
    Krueger, Jacob
    Al-Hajjaji, Mustafa
    Leich, Thomas
    Saake, Gunter
    [J]. SPLC'19: PROCEEDINGS OF THE 23RD INTERNATIONAL SYSTEMS AND SOFTWARE PRODUCT LINE CONFERENCE, VOL A, 2020, : 12 - 12
  • [2] Verification Strategies for Feature-Oriented Software Product Lines
    Kuiter, Elias
    Knueppel, Alexander
    Bordis, Tabea
    Runge, Tobias
    Schaefer, Ina
    [J]. VAMOS'22: 16TH INTERNATIONAL WORKING CONFERENCE ON VARIABILITY MODELLING OF SOFTWARE-INTENSIVE SYSTEMS, 2022,
  • [3] Mutation operators for feature-oriented software product lines
    Krueger, Jacob
    Al-Hajjaji, Mustafa
    Leich, Thomas
    Saake, Gunter
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2019, 29 (1-2):
  • [4] Correctness-by-Construction for Feature-Oriented Software Product Lines
    Bordis, Tabea
    Runge, Tobias
    Schaefer, Ina
    [J]. GPCE '2020: PROCEEDINGS OF THE 19TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON GENERATIVE PROGRAMMING: CONCEPTS AND EXPERIENCES, 2020, : 22 - 34
  • [5] Type safety for feature-oriented product lines
    Sven Apel
    Christian Kästner
    Armin Größlinger
    Christian Lengauer
    [J]. Automated Software Engineering, 2010, 17 : 251 - 300
  • [6] Model-Based Security Analysis of Feature-Oriented Software Product Lines
    Peldszus, Sven
    Strueber, Daniel
    Juerjens, Jan
    [J]. PROCEEDINGS OF THE 17TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON GENERATIVE PROGRAMMING: CONCEPTS AND EXPERIENCES (GPCE'18), 2018, : 93 - 106
  • [7] Type safety for feature-oriented product lines
    Apel, Sven
    Kaestner, Christian
    Groesslinger, Armin
    Lengauer, Christian
    [J]. AUTOMATED SOFTWARE ENGINEERING, 2010, 17 (03) : 251 - 300
  • [8] On the use of feature-oriented programming for evolving software product lines - A comparative study
    Sousa Ferreira, Gabriel Coutinho
    Gaia, Felipe Nunes
    Figueiredo, Eduardo
    Maia, Marcelo de Almeida
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2014, 93 : 65 - 85
  • [9] The Feature-Architecture Mapping (FArM) method for feature-oriented development of software product lines
    Sochos, Periklis
    Riebisch, Matthias
    Philippow, Ilka
    [J]. 13TH ANNUAL IEEE INTERNATIONAL SYMPOSIUM AND WORKSHOP ON ENGINEERING OF COMPUTER BASED SYSTEMS, PROCEEDINGS: MASTERING THE COMPLEXITY OF COMPUTER-BASED SYSTEMS, 2006, : 308 - +
  • [10] Modular Feature-Oriented Graphical Editor Product Lines
    Kuehn, Thomas
    Kassin, Kevin Ivo
    Cazzola, Walter
    Assmann, Uwe
    [J]. SPLC'18: PROCEEDINGS OF THE 22ND INTERNATIONAL SYSTEMS AND SOFTWARE PRODUCT LINE CONFERENCE, VOL 1, 2018, : 76 - 86