Skip to main content
Article thumbnail
Location of Repository

Enhancing legacy software system analysis by combining behavioural and semantic information sources

By David Cutting


Computer software is, by its very nature highly complex and invisible yet subject\ud to a near-continual pressure to change. Over time the development process has\ud become more mature and less risky. This is in large part due to the concept\ud of software traceability; the ability to relate software components back to their\ud initial requirements and between each other. Such traceability aids tasks such\ud as maintenance by facilitating the prediction of “ripple effects” that may result,\ud and aiding comprehension of software structures in general. Many organisations,\ud however, have large amounts of software for which little or no documentation\ud exists; the original developers are no longer available and yet this software still\ud underpins critical functions. Such “legacy software” can therefore represent a high\ud risk when changes are required.\ud Consequently, large amounts of effort go into attempting to comprehend and\ud understand legacy software. The most common way to accomplish this, given\ud that reading the code directly is hugely time consuming and near-impossible, is\ud to reverse engineer the code, usually to a form of representative projection such\ud as a UML class diagram. Although a wide number of tools and approaches exist,\ud there is no empirical way to compare them or validate new developments. Consequently\ud there was an identified need to define and create the Reverse Engineering\ud to Design Benchmark (RED-BM). This was then applied to a number of industrial\ud tools. The measured performance of these tools varies from 8.8% to 100%,\ud demonstrating both the effectiveness of the benchmark and the questionable performance\ud of several tools.\ud In addition to the structural relationships detectable through static reverse\ud engineering, other sources of information are available with the potential to reveal\ud other types of relationships such as semantic links. One such source is the mining\ud of source code repositories which can be analysed to find components within a\ud software system that have, historically, commonly been changed together during\ud the evolution of the system and from the strength of that infer a semantic link. An\ud approach was implemented to mine such semantic relationships from repositories\ud and relationships were found beyond those expressed by static reverse engineering.\ud These included groups of relationships potentially suitable for clustering.\ud To allow for the general use of multiple information sources to build traceability\ud links between software components a uniform approach was defined and\ud illustrated. This includes rules and formulas to allow combination of sources.\ud The uniform approach was implemented in the field of predictive change impact\ud analysis using reverse engineering and repository mining as information sources.\ud This implementation, the Java Code Relationship Anlaysis (jcRA) package, was\ud then evaluated against an industry standard tool, JRipples. Depending on the\ud target, the combined approach is able to outperform JRipples in detecting potential\ud impacts with the risk of over-matching (a high number of false-positives\ud and overall class coverage on some targets)

Year: 2016
OAI identifier:

Suggested articles

To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.