DocumentCode :
2534776
Title :
Annotation support for generic patches
Author :
Dotzler, Georg ; Veldema, Ronald ; Philippsen, Michael
Author_Institution :
Comput. Sci. Dept., Univ. of Erlangen-Nuremberg, Erlangen, Germany
fYear :
2012
fDate :
4-4 June 2012
Firstpage :
6
Lastpage :
10
Abstract :
In large projects parallelization of existing programs or refactoring of source code is time consuming as well as error-prone and would benefit from tool support. However, existing automatic transformation systems are not extensively used because they either require tedious definitions of source code transformations or they lack general adaptability. In our approach, a programmer changes code inside a project, resulting in before and after source code versions. The difference (the generated transformation) is stored in a database. When presented with some arbitrary code, our tool mines the database to determine which of the generalized transformations possibly apply. Our system is different from a pure compiler based (semantics preserving) approach as we only suggest code modifications. Our contribution is a set of generalizing annotations that we have found by analyzing recurring patterns in open source projects. We show the usability of our system and the annotations by finding matches and applying generated transformations in real-world applications.
Keywords :
automatic programming; program compilers; public domain software; software maintenance; software tools; annotation support; automatic transformation system; code modification; code refactoring; generalized transformation; generalizing annotation; generated transformation; generic patches; open source project; programming tool; semantics preserving approach; system usability; Benchmark testing; Databases; Generators; Java; Pattern matching; Semantics; code-refactoring; optimizations; patches; programming tools;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Recommendation Systems for Software Engineering (RSSE), 2012 Third International Workshop on
Conference_Location :
Zurich
Print_ISBN :
978-1-4673-1758-0
Type :
conf
DOI :
10.1109/RSSE.2012.6233400
Filename :
6233400
Link To Document :
بازگشت