Java exception propagation static structure extraction method

A technology of exception propagation and static structure, applied in software testing/debugging, etc., can solve maintenance problems, increase the difficulty of throwing locations and processing locations, and multiple costs

Inactive Publication Date: 2012-06-27
BEIHANG UNIV
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in a complex software system, the exception generation and processing process is not necessarily in a localized area
For example, taking a software system constructed in the Java language as an example, the exception handling mechanism of the Java language does not "tightly" connect the exception point and the exception handler, but connects it through the method call stack. Therefore, the exception handling mechanism of the Java language exists Obvious maintenance problem: For a certain type of exception thrown, how to determine the location of the exception handler fragment in the software system
For developers, exception propagation frequently crosses the boundaries of components and is global; and exceptions also jump multiple times on their propagation paths and may be abstracted, which increases the difficulty of analyzing where exceptions are thrown and processed
In addition, the modification of exception propagation requires more cost under the influence of exception handling globality

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Java exception propagation static structure extraction method
  • Java exception propagation static structure extraction method
  • Java exception propagation static structure extraction method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0036] In view of the importance of the exception propagation structure in the Java software system to the importance of software robustness maintenance and the complexity of the exception propagation structure extraction, the purpose of the present invention is to propose a method for extracting the static exception propagation structure of the Java software system, for helping Software developers separate the exception propagation structure from the original Java software system, clarify the intricate interweaving relationship between exception control flow and software normal control flow, and reduce the manpower, resource and time costs in the subsequent software maintenance phase. The method combines the Java system-defined exception hierarchy with the user-defined exception hierarchy to improve the integrity and correctness of the extracted exception pro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a Java exception propagation static structure extraction method. According to an exception type hierarchical relationship, based on a method calling relationship, an exception throwing and capturing relationship existing a Java exception propagation process is combined, thus the Java exception propagation static structure can be more completely extracted. In order to overcome the difficulty in extraction of a complex hierarchical structure to an exception propagation structure, the Java exception propagation static structure extraction method is used for fusing a system exception type with a user defined exception type to construct a relatively-complete exception type hierarchical structure tree; and on the basis of calling a dependency graph, the Java exception propagation static structure extraction method is used for constructing a software extension dependency graph by associating the exception throwing and capturing relationship with the exception type hierarchical structure. By using an exception type capturing point as an exception propagation structure search starting point, the Java exception propagation structure is extracted by adopting an extraction algorithm based on a depth-first search algorithm and the exception type hierarchical structure tree.

Description

technical field [0001] The invention relates to a static analysis method for software structure based on the Java programming language, in particular to a method for obtaining an abnormal propagation structure in a software system, which belongs to the field of computer software measurement and analysis. Background technique [0002] The diversification and complexity of software system functions have made software robustness one of the main concerns in the industry. At present, researchers have proposed a variety of methods to improve software robustness. The exception handling mechanism is a method provided by modern programming languages ​​for software developers to build a robust system. It separates the normal control flow of the system under abnormal conditions from the control flow that handles the exception. Unfortunately, the analysis of abnormal control flow in a huge system is very difficult. [0003] The concept of exception handling was first proposed by John ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 张莉邱翔连小利
Owner BEIHANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products