Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for replacing methods in Java classes

A technology of java class and java virtual machine, applied in the field of replacement method and device in Java class, can solve problems such as restarting, and achieve the effect of improving efficiency and improving user experience

Inactive Publication Date: 2017-06-30
ADVANCED NEW TECH CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the present application provides a replacement method and device for a method in a Java class to solve the problem in the related art that the replacement of a method in a Java class needs to restart the relevant application

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
  • Method and device for replacing methods in Java classes
  • Method and device for replacing methods in Java classes
  • Method and device for replacing methods in Java classes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0038] The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term...

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 method and device for replacing methods in Java classes. The method comprises the steps that a Java virtual machine loads a first Java kind and a second Java kind; first structural information of a to-be-replaced method in the first Java kind and second structural information of a replacement method in the second Java kind are determined by JNI; the structural information is replaced according to the second structural information. According to the method and device for replacing the methods in the Java classes, dynamic replacement of the methods in all type of Java classes can be realized, relevant applications are not required to be restarted, the Java classes are not required to be reloaded, the replacement efficiency of the methods in the Java classes is improved, and at the same time, the user experience is improved.

Description

technical field [0001] The present application relates to the field of software technology, in particular to a replacement method and device for a method in a Java class. Background technique [0002] Java is an object-oriented programming language that can write cross-platform applications. Java technology has excellent versatility, efficiency, platform portability and security, and has been widely used in different platforms in various fields. [0003] A Java class is the organizational unit of a Java program. A Java class usually encapsulates methods. However, a Java class cannot be directly manipulated. Usually, the Java class needs to be loaded by the Java virtual machine, and then each method in the Java class is executed to implement the Java class. program running. [0004] In actual application development, it is often necessary to modify the methods in the Java class. At present, when modifying the methods in the Java class, it is generally necessary to restart th...

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): G06F9/44
CPCG06F8/315G06F8/72
Inventor 黎三平
Owner ADVANCED NEW TECH CO LTD