Title :
Semi-static Detection of Runtime Type Errors in Component-Based Java Programs
Author :
Xiaowei Zhou ; Wenbo Zhang ; Jianhua Zhang
Author_Institution :
Technol. Center of Software Eng., Inst. of Software, Beijing, China
Abstract :
The using of multiple custom class loaders in component-based Java programs may lead to more runtime type errors. These errors can happen at various program statements and may be wrapped in different types of exceptions by JVM, therefore posing difficulties for dealing with them. Traditional static analysis approaches only consider static types and thus cannot detect many of them. We propose a semi-static approach based on points-to analysis and dynamically gathered behavior information of Java class loaders to detect runtime type errors in component-based Java programs without running them. We also implement a prototype tool for OSGi-based programs, where OSGi is a typical Java component framework.
Keywords :
Java; object-oriented programming; program diagnostics; Java class loader; Java component framework; behavior information; component based Java programs; multiple custom class loaders; points to analysis; runtime type errors; semistatic detection; static analysis; Containers; Java; Loading; Resource management; Runtime; Writing; Class Loader; Points-to Analysis; Semistatic Detection; based;
Conference_Titel :
Software Engineering Conference (APSEC), 2012 19th Asia-Pacific
Conference_Location :
Hong Kong
Print_ISBN :
978-1-4673-4930-7
DOI :
10.1109/APSEC.2012.46