RUS  ENG
Full version
JOURNALS // Modelirovanie i Analiz Informatsionnykh Sistem // Archive

Model. Anal. Inform. Sist., 2010 Volume 17, Number 4, Pages 70–77 (Mi mais37)

Integration of semantic verification into Java compilers

A. V. Klepinin, A. A. Melent'ev

Ural State University

Abstract: This paper introduces a method for static semantic analysis of source codes at compilation time directly within standard compilers. The method is implemented via unified integration with Java compilers to get the full access to Abstract Syntax Tree (AST) of compiled files after the semantic analysis stage of compilation process. The unified integration is implemented by common AST interfaces and adapters to AST implementations of Sun/Oracle javac and Eclipse Compiler for Java (ecj) compilers. This method provides transparent integration with Eclipse and Netbeans IDE without a need for any special plugins. Several examples of program verification rules are presented to demonstrate the method.

Keywords: program verification, AST, Java, compiler, JSR269, javac, ecj, Eclipse IDE, Netbeans IDE.

UDC: [004.4'233 + 004.4'422] : 004.438Java

Received: 14.10.2010



© Steklov Math. Inst. of RAS, 2024