Code copying and customization is a common practice to realize variability and serve the demand for custom-tailored software. The clone-and-own-approach is flexible and efficient, but does not scale with the number of variants as developers must transfer changes between clones manually, which is an error-prone and tedious task. This task becomes even more challenging, when developers reuse code not only between variants, but also within variants. As a solution, we propose a novel synchronization technique that supports developers to transfer changes applied to clones to its corresponding clone instances within a variant as well as across other variants. Our technique relies on a common model of clone relationships between and within variants, that can automatically propagate changes two-dimensional into the respective intra- and inter-clone instances. In an empirical evaluation, we demonstrate the need for this two-dimensional clone synchronization and show the usefulness and scalability of our approach using the MobileMedia case study.
| Related KIT institution | Institute of Information Security and Dependability (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000150495 |
| Publisher | Association for Computing Machinery (ACM) |
| ISBN of the conference proceedings | 978-1-4503-9206-8 |
| Event | 26th ACM International Systems and Software Product Line Conference (SPLC), Graz, Austria, Sep 12 – 16, 2022 |
| Referenced in | Scopus Dimensions OpenAlex |
| HGF programme | 46.23.03 (POF IV, LK 01) Engineering Security for Mobility Systems |