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

Method for automatically repairing Java software dependency conflict problem

A conflict problem and software technology, applied in the field of automatic repair of Java software dependency conflict problems, can solve problems such as runtime errors, Maven build tools do not provide solutions, etc., to save development costs, reduce the time to resolve runtime errors, and reduce The effect of the probability of runtime errors

Pending Publication Date: 2021-06-15
NORTHEASTERN UNIV
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For the problem of runtime errors caused by dependency conflicts in the Maven environment, the Maven build tool does not provide an effective solution

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 for automatically repairing Java software dependency conflict problem
  • Method for automatically repairing Java software dependency conflict problem
  • Method for automatically repairing Java software dependency conflict problem

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0039] like figure 1 As shown, the method for automatically repairing the Java software dependency conflict problem in this embodiment is as follows:

[0040] Step 1: Get the project code and dependencies of the current project;

[0041] In this embodiment, Maven is used to analyze the project pom file to obtain the complete dependency tree of the project, because the Maven loading mechanism ensures that only one version of each dependency is loaded and used, so a complete dependency tree includes project loaded dependencies and unused The loaded dependencies traverse the complete dependency tree, and store each dependency on the dependency tree as a node in the...

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 automatically repairing a Java software dependency conflict problem, which comprises the following steps of: finding out the dependency conflict problem by analyzing the dependency relationship of Java software projects, and performing static analysis to obtain a class and a method for realizing a program and a possible calling path between the class and the method. According to the method, four repair strategies are set, different strategies are selected according to the risk types to load the risk-free version into the current project, and a proper dependency version is selected according to the calling path relation of the project to carry out automatic version replacement, so that developers are helped to effectively avoid the dependency conflict problem. Whether more dependency conflicts which can cause errors during operation are brought to the project or not can be evaluated during repairing, and finally a repairing patch and a repairing report are automatically formed to a developer. The probability that a developer encounters a runtime error in the development process is reduced, the time for solving the runtime error is shortened, and the development cost is saved.

Description

technical field [0001] The invention relates to the technical field of software reliability, in particular to a method for automatic repair of Java software dependency conflict problems. Background technique [0002] With the efforts of many developers, Java software has formed a huge third-party open source dependency library. Although the third-party open source dependency library brings great convenience to developers in developing Java software projects, it also brings troubles to developers, that is, how to manage many third-party dependency packages introduced in Java software projects. When a Java software project introduces a third-party dependency package, and the development of the third-party dependency package introduces other third-party dependency packages, a transfer situation is formed, which prevents the Java software project from relying on the third-party dependency package. management. Therefore, the emergence of Maven has brought a good build managemen...

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/36G06F8/71
CPCG06F11/3684G06F11/3688G06F8/71
Inventor 孙俊彦王莹王修齐于海朱志良
Owner NORTHEASTERN 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