Discovering Reusable Functional Features in Legacy Object-Oriented Systems
- 8 May 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 49 (7) , 3827-3856
Abstract
Typical object-oriented (OO) systems implement several functional features that are interwoven into class hierarchies. In the absence of aspect-oriented techniques to develop and compose these features, developers resort to object-oriented design and programming idioms to separate features as well as possible. Given a legacy OO system, discovering existing functional features helps understand the design of the system and extract these features to ease their maintenance and reuse. We want to discover candidate functional features in OO systems. We first define functional features and then discuss the footprints that such features are likely to leave in an OO system. We identify three such footprints: (1) multiple inheritance, (2) delegation, and (3) ad-hoc. We develop a set of algorithms for identifying such footprints in OO code and implemented them for the Java language using Eclipse JDT. In this article, we present the algorithms, and the results of applying the corresponding tools on five open-source systems: FreeMind, JavaWebMail, JHotDraw, JReversePro, and Lucene. Our experimental results show that: (1) the different algorithms can identify interesting and useful candidate functional features in OO systems, (2) they can identify opportunities for refactoring, and (3) they are complementary and could help developers.Keywords
Funding Information
- Natural Sciences and Engineering Research Council of Canada
This publication has 58 references indexed in Scilit:
- Understanding design patterns — what is the problem?Software: Practice and Experience, 2011
- SNIAFLACM Transactions on Software Engineering and Methodology, 2006
- Recovering binary class relationshipsACM SIGPLAN Notices, 2004
- Locating features in source codeIEEE Transactions on Software Engineering, 2003
- A hierarchical model for object-oriented design quality assessmentIEEE Transactions on Software Engineering, 2002
- A unified framework for coupling measurement in object-oriented systemsIEEE Transactions on Software Engineering, 1999
- Design of class hierarchies based on concept, (Galois) latticesTheory and Practice of Object Systems, 1998
- Program understanding and the concept assignment problemCommunications of the ACM, 1994
- Efficient handling of multiple inheritance hierarchiesACM SIGPLAN Notices, 1993
- Programmers use slices when debuggingCommunications of the ACM, 1982