Static Detection Unsafe Use of variables In Java
Authors:
- Xiaoquan WuXWXiaoquan Wu
- Jun WeiJWJun Wei
- 1 October 2010
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 439-443
Abstract
Exception handling has been introduced into object oriented programming languages to help developing robust software. At the same time, it makes programming more difficult and it is not easy to write high quality exception handling codes. Careless exception handling code will introduce bugs and it usually forms certain kind of bug pattern. In this paper we propose a new bug pattern unsafe use of variables due to exception occurrences. It may cause the dependency safety property violation in a program. We also develop a static approach to automatically detect unsafe use of variables that may introduce potential bugs in Java program. This approach can be integrated into current bug finding tools to help developer improve the quality of Java program.Keywords
This publication has 12 references indexed in Scilit:
- Failboxes: Provably Safe Exception Handling2009
- Why do developers neglect exception handling?2008
- Changing Java's Semantics for Handling Null Pointer Exceptions2008
- Using Static Analysis to Find BugsIEEE Software, 2008
- Exception Handling: A Field Study in Java and .NET2007
- Finding more null pointer bugs, but not too many2007
- A Comparison of Bug Finding Tools for Java2005
- Applying static analysis to large-scale, multi-threaded Java programs2001
- Analysis and testing of programs with exception handling constructsIEEE Transactions on Software Engineering, 2000
- Eliminating exception handling errors with dependability cases: a comparative, empirical studyIEEE Transactions on Software Engineering, 2000