Font Size: a A A

A Study Of Java Exceptions Repairment Based On Case Base

Posted on:2016-07-16Degree:MasterType:Thesis
Country:ChinaCandidate:Z K ShiFull Text:PDF
GTID:2348330488974169Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the development of object-oriented application development technologies, Java software development language in the present proportion is growing. Developers are more and more. The studies for reliability of Java programs draw increasing attention of experts. Java exception is the error representation of Java language. So repairment methods for improving the reliability of the program are significant.In this paper, we focus on the problem of Java exceptions repairment. The paper studies exception repairment methods based on case base technology of expert system theory. The case base is knowledge database of a large number of common exceptions and solutions occurring in the development of Java software. To this end, we rebuild the case base. The case base has been transformed into expert system with rule-based inferences. It has advantages of both the rule-based reasoning and case-based reasoning. Exception repairment includes exception avoiding repairment before running, exception repairment after running, exception ignoring repairment while running. Among the three kinds of concrete methods, exception avoiding repairment before running first static analysis program structure. Exception handler code is added in the code block that can appear exception. When an exception occurs after running, you need to monitor the dynamic operation of program to obtain the exception information, then get the recommended solutions from expert case base system and repair it by yourself. Runtime exceptions repairment focuses on stability of program. When an exception occurs, repairment can make sure that the programs continue to run. Finally, an exception repairment tool based on Eclipse RCP technology is designed, whose design scheme and implementation are given in detail.
Keywords/Search Tags:Java Exception, Expert System, Case Base, Rule-based Reasoning, RCP
PDF Full Text Request
Related items