[Paper Review] A Static Program Slicing Approach for Output Stream Objects in JEE Applications
This paper proposes a static program slicing approach for output stream objects in Java EE (JEE) applications by constructing a dependency call graph from KDM models and applying breadth-first search on the transpose graph to identify all statements influencing the output stream. The method enables precise, language-independent analysis of server-side code in JEE, supporting tasks like change impact analysis and debugging by isolating relevant program slices with high accuracy.
In this paper, we propose a program slicing approach for the output stream object in JEE applications. Our approach is based on extracting a dependency call graph from KDM models of JEE applications. Then, it applies breath-first search algorithm to identify the program slice as a graph reachability problem. The proposed approach is implemented as an extension of our DeJEE tool.
Motivation & Objective
- To address the challenge of identifying program slices for output stream objects in complex JEE applications that mix server-side Java with client-side Web dialects.
- To overcome limitations in existing slicing techniques due to nested streams, reflection, polymorphism, and configuration files in JEE environments.
- To develop a language-independent slicing approach based on KDM models to support multilanguage JEE applications.
- To implement the approach as an extension of the DeJEE tool for practical use in software maintenance and analysis.
Proposed method
- Construct a dependency call graph (G = ⟨V, E⟩) from KDM models of JEE source code, where nodes represent statements and edges represent data or control dependencies.
- Model data dependencies as read-after-write relationships between statements, ensuring execution order via sequential evaluation.
- Model control dependencies by linking conditional statements (e.g., if, for) to their inner statements, with the method prototype as the root.
- Generate the transpose graph GT by reversing all edges in the dependency call graph to enable backward reachability analysis.
- Apply a breadth-first search (BFS) algorithm on GT starting from output stream method invocations (e.g., out.print, out.write) to identify all reachable nodes.
- Extract the final program slice as the set of reachable nodes, representing all statements that influence the output stream value.
Experimental results
Research questions
- RQ1How can program slicing be effectively applied to output stream objects in JEE applications despite the complexity of mixed-language code and container dependencies?
- RQ2To what extent can KDM-based modeling enable language-independent program slicing in multilanguage JEE systems?
- RQ3Can a dependency call graph built from KDM models accurately capture data and control dependencies for slicing purposes in JEE?
- RQ4How effective is the use of graph reachability via BFS on transpose graphs for identifying minimal program slices in JEE applications?
Key findings
- The proposed approach successfully identifies all statements influencing the output stream object by modeling dependencies in KDM-based program representations.
- The use of KDM models enables language independence, allowing the slicing approach to be applied across multiple languages in JEE applications.
- The dependency call graph construction accurately captures both data and control dependencies, forming a solid foundation for slicing.
- Breadth-first search on the transpose graph efficiently computes the set of reachable nodes, yielding a minimal and precise program slice.
- The implementation as an extension of the DeJEE tool demonstrates feasibility and practicality for real-world JEE application analysis.
- The approach effectively handles complex JEE patterns such as nested streams, method overloading, and polymorphic dispatching in static analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.