Refactoring in the Presence of Annotations. Noguera Garcia, C., Kellens, A., De Roover, C., & Jonckers, V. In 28th International Conference on Software Maintenance (ICSM), of International Conference on Software Maintenance (ICSM), pages 337–346, 9, 2012. IEEE.
abstract   bibtex   
Current-day programming languages include constructs to embed meta-data in a program's source code in the form of annotations. More than mere documentation, these annotations are used in modern frameworks to map source- level entities to domain-specific ones. A common example being the Hibernate Object-Relational Mapping framework that relies on annotations to declare persistence configurations. While the presence of annotations extends the base semantics of the language, it also imposes restrictions on the annotated program. In this paper we consider the manner in which annotations affect automated refactorings, and in particular how they break the behavior preservation of these refactorings. As refactorings, during their condition checking phase, ignore the annotation's restrictions they can no longer guarantee the preservation of the domain-specific mappings. To address this problem, we propose to make the restrictions of the annotations explicit, and use them to steer the refactoring process. A prototype extension of the Eclipse IDE's refactoring engine is used to demonstrate our approach on three annotation libraries: Java Persistence API, AspectJ5 and Simple XML serialization.
@inproceedings{bfbfeb49131b4b1d826ff142540b9f01,
  title     = "Refactoring in the Presence of Annotations",
  abstract  = "Current-day programming languages include constructs to embed meta-data in a program's source code in the form of annotations. More than mere documentation, these annotations are used in modern frameworks to map source- level entities to domain-specific ones. A common example being the Hibernate Object-Relational Mapping framework that relies on annotations to declare persistence configurations. While the presence of annotations extends the base semantics of the language, it also imposes restrictions on the annotated program. In this paper we consider the manner in which annotations affect automated refactorings, and in particular how they break the behavior preservation of these refactorings. As refactorings, during their condition checking phase, ignore the annotation's restrictions they can no longer guarantee the preservation of the domain-specific mappings. To address this problem, we propose to make the restrictions of the annotations explicit, and use them to steer the refactoring process. A prototype extension of the Eclipse IDE's refactoring engine is used to demonstrate our approach on three annotation libraries: Java Persistence API, AspectJ5 and Simple XML serialization.",
  keywords  = "refactoring, annotations, tool support",
  author    = "{Noguera Garcia}, {Carlos Francisco} and Andy Kellens and {De Roover}, Coen and Viviane Jonckers",
  year      = "2012",
  month     = "9",
  day       = "1",
  language  = "English",
  isbn      = "978-1-4673-2312-3",
  series    = "International Conference on Software Maintenance (ICSM)",
  publisher = "IEEE",
  pages     = "337--346",
  booktitle = "28th International Conference on Software Maintenance (ICSM)",
}

Downloads: 0