Implementation of automated Java code defect detection technology
Xue Di,Jin Mao-Zhong,Liu Chao
2010-01-01
Abstract:The software inspection is always considered as an important and effective method to improve the software quality since the concept was first proposed by Michael Fagan in 1976. Code inspection,which is mostly processed manually,focuses on checking the consistency between code and design,the validity of program logic and structure,etc. As the software scale increasing rapidly,the manual software inspection is becoming more and more time-consuming,expensive and the needing of accumulation of knowledge and experience is becoming more too. Because of the important role of inspection in software quality assurance field,it is vital to research and implement a useful and effective tool to support the software inspection. However,the traditional code inspection is a "labor intensive" process. With the aim of improving the efficiency of code inspection,a number of computer supported inspection methods have been proposed and widely used.The formal 7-steps process of software inspection was firstly described,and the traditional process was refined in this paper. An automatic defect detection tool was developed to support the steps such as:individual prepare,inspection meeting and defect fixing. The efficiency has been improved by using the tool,and the inspector can finish the inspection task quickly and easily with the support of the tool.This paper can be divided into three main parts:At first,concepts of software inspection are introduced,and then the related works are analyzed. By analyzing the tools which are widely used nowadays,the shortcomings of those tools are summarized. As to those shortcomings,the automatic defect detecting tool is implemented,which supports the defining of a new defect pattern. With the help of the defect pattern tree,the efficiency of defect detection is improved.Secondly,this paper discusses the method of how to implement the automatic code inspection. It mentioned about how to detect the defect according to the defect pattern,and because of the low efficiency of the automatic code inspection,this paper introduce the design of the defect pattern tree,with the help of it,the efficiency of the automatic code inspection can be improve significantly. At the end of the second part,the architecture of automatic code inspection software is introduced.The last main part of this paper,a experiment and its analysis is purposed. There are two part of the experiment to prove the effectiveness and efficiency of the automatic code inspection tool perspective. According to the IBM orthogonal defect classification(ODC),the analysis of the defect categories is introduced. This paper proves the automatic code inspection tool's efficiency through using it to detect to open source project.At last,the summary of this paper is given,and meanwhile,the outlook of automatic code inspection tool in purposed.