Recommending Source Code Locations for System Specific Transformations

Gustavo Santos 1 Klérisson Paixão 2 Nicolas Anquetil 1 Anne Etien 1 Marcelo De Almeida 2 Stéphane Ducasse 1
1 RMOD - Analyses and Languages Constructs for Object-Oriented Application Evolution
Inria Lille - Nord Europe, CRIStAL - Centre de Recherche en Informatique, Signal et Automatique de Lille (CRIStAL) - UMR 9189
Abstract : From time to time, developers perform sequences of code transformations in a systematic and repetitive way. This may happen, for example, when introducing a design pattern in a legacy system: similar classes have to be introduced, containing similar methods that are called in a similar way. Automation of these sequences of transformations has been proposed in the literature to avoid errors due to their repetitive nature. However, developers still need support to identify all the relevant code locations that are candidate for transformation. Past research showed that these kinds of transformation can lag for years with forgotten instances popping out from time to time as other evolutions bring them into light. In this paper, we evaluate three distinct code search approaches ("structural" , based on Information Retrieval, and AST based algorithm) to find code locations that would require similar transformations. We validate the resulting candidate locations from these approaches on real cases identified previously in literature. The results show that looking for code with similar roles, e.g., classes in the same hierarchy, provides interesting results with an average recall of 87% and in some cases the precision up to 70%.
Type de document :
Communication dans un congrès
24th IEEE International Conference on Software Analysis, Evolution, and Reengineering, Feb 2017, Klagenfurt, Austria. 〈http://saner.aau.at/〉
Liste complète des métadonnées

https://hal.inria.fr/hal-01441790
Contributeur : Lse Lse <>
Soumis le : vendredi 20 janvier 2017 - 11:01:40
Dernière modification le : vendredi 13 avril 2018 - 01:28:11
Document(s) archivé(s) le : vendredi 21 avril 2017 - 13:44:09

Fichier

Sant17a-SANER-RecommendingTran...
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01441790, version 1

Collections

Citation

Gustavo Santos, Klérisson Paixão, Nicolas Anquetil, Anne Etien, Marcelo De Almeida, et al.. Recommending Source Code Locations for System Specific Transformations. 24th IEEE International Conference on Software Analysis, Evolution, and Reengineering, Feb 2017, Klagenfurt, Austria. 〈http://saner.aau.at/〉. 〈hal-01441790〉

Partager

Métriques

Consultations de la notice

356

Téléchargements de fichiers

121