Embedding Software Intent: Lightweight Java Module Recovery
Preprint
Abstract
As an increasing number of software systems reach unprecedented scale, relying solely on code-level abstractions is becoming impractical. While architectural abstractions offer a means to manage these systems, maintaining their consistency with the actual code has been problematic. The Java Platform Module System (JPMS), introduced in Java 9, addresses this limitation by enabling explicit module specification at the language level. JPMS enhances architectural implementation through improved encapsulation and direct specification of ground-truth architectures within Java projects. Although many projects are written in Java, modularizing existing monolithic projects to JPMS modules is an open challenge due to ineffective module recovery by existing architecture recovery techniques. To address this challenge, this paper presents ClassLAR (Class-and Language model-based Architectural Recovery), a novel, lightweight, and efficient approach that recovers Java modules from monolithic Java systems using fully-qualified class names. ClassLAR leverages language models to extract semantic information from package and class names, capturing both structural and functional intent. In evaluations across 20 popular Java projects, ClassLAR outperformed all state-of-the-art techniques in architectural-level similarity metrics while achieving execution times that were 3.99 to 10.50 times faster.Keywords
All Related Versions
This publication has 30 references indexed in Scilit:
- Automated Software Architecture Design Recovery from Source Code Using LLMs2025
- Bringing architecture-based adaption to the mainstreamInformation and Software Technology, 2024
- A Framework and Taxonomy for Characterizing the Applicability of Software Architecture Recovery Approaches: A Tertiary‐Mapping StudySoftware: Practice and Experience, 2024
- Context-Aware Expert for Software Architecture Recovery (CAESAR): An automated approach for recovering software architecturesJournal of King Saud University Computer and Information Sciences, 2023
- Relationships between software architecture and source code in practice: An exploratory survey and interviewInformation and Software Technology, 2022
- Multi-objective search-based software modularization: structural and non-structural featuresSoft Computing, 2018
- The adult human testis transcriptional cell atlasCell Research, 2018
- A large-scale study of architectural evolution in open-source software systemsEmpirical Software Engineering, 2016
- An information-theoretic perspective of tf–idf measuresInformation Processing & Management, 2003
- A classification and comparison framework for software architecture description languagesIEEE Transactions on Software Engineering, 2000