ACM SIGPLAN Notices · 2005 · 18 citations · 14 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringSystems ProgrammingApplication Programming InterfacesObject-oriented ProgrammingSoftware DesignSoftware EvolutionSoftware RefactoringSoftware ReuseConstraintsLegacy Application MigrationLegacy Code RefactoringLegacy SystemsObject-oriented RefactoringType Constraints
As object-oriented class libraries evolve, classes are occasionally deprecated in favor of others with roughly the same functionality. In Java's standard libraries, for example, class Hashtable has been superseded by HashMap, and Iterator is now preferred over Enumeration. Migrating client applications to use the new idioms is often desirable, but making the required changes to declarations and allocation sites can be quite labor-intensive. Moreover, migration becomes complicated---and sometimes impossible---if an application interacts with external components, if a legacy class is not completely equivalent to its replacement, or if multiple interdependent classes must be migrated simultaneously. We present an approach in which mappings between legacy classes and their replacements are specified by the programmer. Then, an analysis based on type constraints determines where declarations and allocation sites can be updated. The method was implemented in Eclipse, and evaluated on a number of Java applications. On average, our tool could migrate more than 90% of the references to legacy classes.
14
A survey of software refactoring
Tom Mens, Tom Tourwé · IEEE Transactions on Software Engineering · 2004 · 1.2K citations · Full text
Jong-Deok Choi, Manish Gupta, Maurício Serrano et al. · 1999 · 505 citations · Full text
A refactoring tool for smalltalk
Don Roberts, John Brant, Ralph E. Johnson · Theory and Practice of Object Systems · 1997 · 355 citations
Johannes Henkel, Amer Diwan · 2005 · 274 citations
Effective synchronization removal for Java