Renaming Detection

  • Authors:
  • Guido Malpohl;James J. Hunt;Walter F. Tichy

  • Affiliations:
  • University of Karlsruhe, IPD, Am Fasanengarten 5, 76128 Karlsruhe, Germany. malpohl@ira.uka.de;aicas GmbH, Haid-und-Nev-StraBe 18, Karlsruhe, Germany D-76131. jjh@aicas.com;University of Karlsruhe, IPD, Am Fasanengarten 5, 76128 Karlsruhe, Germany. tichy@ira.uka.de

  • Venue:
  • Automated Software Engineering
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Finding changed identifiers is important for understanding the difference between two versions of a program and for detecting and resolving conflicts while merging variants of a program together. Standard practice for differencing and merging relies on line based techniques that do not recognize renamed identifiers. The design and implementation of a tool to automatically detect renamed identifiers between two versions of a program is presented. The system uses an abstract representation of language constructs to enable language awareness without introducing language dependence. Modules for Java and Scheme have been written. The detector works with multiple file pairs, taking into account renamings that span several files. A case study is presented that demonstrates proof of concept. The detector is part of a suite of intelligent differencing and merging programs that exploit the static semantics of programming languages.