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

Method and device for detecting jar package conflicts

A technology of package detection and member method, applied in the field of Java application development, which can solve the problems of running failure and inability to detect conflicts in the completeness of JAR package dependencies.

Active Publication Date: 2019-07-09
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 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 technology cannot detect the conflicts of JAR packages in terms of completeness of dependencies, which may cause failures at runtime

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 package conflicts
  • Method and device for detecting jar package conflicts
  • Method and device for detecting jar package conflicts

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/41G06F11/36
Inventor 杨博林
Owner ALIBABA GRP HLDG LTD
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