Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Dynamic and static combined Java program exception handling and optimization method

A technology of exception handling and optimization method, applied in the direction of program control design, electrical digital data processing, instruments, etc., to achieve the effect of convenient design and implementation, and increase platform portability

Inactive Publication Date: 2011-07-06
FUDAN UNIV
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to propose a Java dynamic and static combination exception handling optimization method for the lack of a set of Java exception handling mechanisms that are suitable for static optimization and can work normally in the Java virtual machine in the current technology.

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
  • Dynamic and static combined Java program exception handling and optimization method
  • Dynamic and static combined Java program exception handling and optimization method
  • Dynamic and static combined Java program exception handling and optimization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention designs and implements the above-mentioned overall framework of dynamic and static combined with Java exception handling mechanism. This section gives a detailed introduction to the specific implementation of the framework. figure 1 For the overall framework of the dynamic and static Java exception handling mechanism, the process of compiling and executing Java programs in the framework of the present invention is described. The present invention is divided into 5 steps: the first 4 steps belong to the category of static analysis, and the last step is the category of dynamic execution.

[0026] In the following, each step of the present invention will be described in detail in the form of an embodiment, showing the whole process of compiling Java code into executable code by this framework. (Example Java exception code snippets see figure 2 ).

[0027] Step 1: Analyze and identify statements that may throw exceptions

[0028] The purpose of this step i...

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 belongs to the technical field of Java compiling and running environment design and in particular relates to a dynamic and static combined Java program exception handling and optimization method. In the method, the dynamic and static combined compiling and running environment is divided into two stages, namely static handling stage and dynamic execution stage. The static handling stage mainly lies in that the exception handling information of a program is analyzed and collected in a static compiler, for example, an exception statement, an exception type, an exception landing point and other information are generated; and the dynamic execution stage mainly lies in that when the exceptions occur, a corresponding exception handling code segment is skipped by the utilization of the exception handling information obtained by static analysis according to the exception type and the exception landing point to execute the relevant operation of exception handling. With the adoption of the method, the Java program compiling work is finished through mixing the dynamic technology and the static technology, so that the effect of providing an optimal exception handing mechanism is achieved.

Description

technical field [0001] The invention belongs to the technical field of Java compilation and operation environment design, and in particular relates to an exception handling optimization method in a Java static compiler and a dynamic virtual machine. Background technique [0002] The exception handling mechanism is a method commonly used in modern programming languages ​​to improve program reliability. As the most widely used object-oriented programming language, Java also regards the exception handling mechanism as an important aspect of the language specification. How to correctly implement Java's exception handling mechanism is a key part of implementing any Java compilation and execution environment. [0003] At present, the Java compilation and operation environment mainly adopts static and dynamic compilation and optimization methods. The static optimization method is to directly compile the Java source program or byte code (byte code) into executable code; the dynami...

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
IPC IPC(8): G06F11/00G06F9/45
Inventor 杨珉王迪许铝才臧斌宇
Owner FUDAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products