Method and device for detecting JAR packet collision

A package detection and member method technology, which is applied in the field of Java application development, can solve problems such as running failures, failure to detect conflicts in JAR package dependency completeness, etc.

Active Publication Date: 2016-06-01
ALIBABA GRP HLDG LTD
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] This application provides a method for detecting JAR package conflicts to solve the problem that the existing technol

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 detecting JAR packet collision
  • Method and device for detecting JAR packet collision
  • Method and device for detecting JAR packet collision

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0077] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the application. However, the present application can be implemented in many other ways different from those described here, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.

[0078] In this application, a method for detecting a JAR package conflict and an apparatus for detecting a JAR package conflict are respectively provided, which will be described in detail in the following embodiments.

[0079] Please refer to figure 1 , which is a flowchart of an embodiment of a method for detecting JAR package conflicts of the present application. The method comprises the steps of:

[0080] Step 101: Select the JAR package to be checked for conflict.

[0081] A Java application usually contains ...

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 for detecting JAR packet collision. The method comprises the following steps: selecting a JAR packet which is about to undergo collision detection; in allusion to each class in the JAR packet, analyzing a bytecode file corresponding to the class, checking whether a bytecode file corresponding to a class depending on the class exists in a pre-assigned JAR packet list and checking whether elements accessed by the class exist in the bytecode file related to the depended class; and if any check result is negative, considering that the current JAR packet has collision. The invention furthermore provides a device for detecting JAR packet collision. By adopting the method provided by the invention, the collision of the JAR packet in the aspect of dependency completeness can be automatically detected, so that a foundation is provided for eliminating the collision through previously adopting a JAR packet updating manner and the like, and the fault caused by the deficiency of dependency completeness in the running stage can be effectively avoided.

Description

technical field [0001] This application relates to the field of Java application development, in particular to a method for detecting JAR package conflicts. The present application also provides a device for detecting JAR package conflicts. Background technique [0002] Java is an object-oriented programming language that can write cross-platform application software. It is the general term for the Java programming language and Java platform (ie JavaEE, JavaME, JavaSE) launched by Sun Microsystems in May 1995. Using the Java language for application development, first write the source code with the file suffix .java, and then compile the source code into a machine-independent binary bytecode (bytecode) through a compiler, namely: .class file, run When relying on the virtual machines (JVM) of various platforms to find and load the class to be executed in the pre-set class loading path, and interpret and execute the bytecode program, so as to realize the cross-platform featur...

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): G06F9/44G06F11/36
Inventor 杨博林
Owner ALIBABA GRP HLDG LTD
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