Sciweavers

ECOOP
2009
Springer

From Public to Private to Absent: Refactoring Java Programs under Constrained Accessibility

15 years 14 days ago
From Public to Private to Absent: Refactoring Java Programs under Constrained Accessibility
Contemporary refactoring tools for JAVA aiding in the restructuring of programs have problems with respecting access modifiers such as public and private: while some tools provide hints that referenced elements may become inaccessible due to the intended restructuring, none we have tested prevent changes that alter the meaning of a program, and none take steps that counteract such alterations. To address these problems, we formalize accessibility in JAVA as a set of constraint rules, and show how the constraints obtained from applying these rules to a program and an intended refactoring allow us to check the preconditions of the refactoring, as well as to compute the changes of access modifiers necessary to preserve the behaviour of the refactored program. We have implemented our framework as a proof of concept in ECLIPSE, and demonstrated how it improves applicability and success of an important refactoring in a number of sample programs. That our approach is not limited to JAVA is sh...
Friedrich Steimann, Andreas Thies
Added 22 Nov 2009
Updated 22 Nov 2009
Type Conference
Year 2009
Where ECOOP
Authors Friedrich Steimann, Andreas Thies
Comments (0)