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

Code compatibility evaluation method oriented to software evolution

A software-oriented and compatibility-oriented technology, applied in software maintenance/management, software testing/debugging, error detection/correction, etc., can solve problems such as no code compatibility and inability to provide information about compatible changes

Active Publication Date: 2016-08-10
SOUTHEAST UNIV
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, binary compatibility is only processed in a code class level file, or only provides code change information without being associated with code compatibility, and cannot provide real information that affects compatibility changes

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
  • Code compatibility evaluation method oriented to software evolution
  • Code compatibility evaluation method oriented to software evolution
  • Code compatibility evaluation method oriented to software evolution

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further described below in conjunction with embodiment and accompanying drawing. figure 1 An architecture based on a code-coupling metric-based identification technique for the cause of replaceability evolution is presented. The project used in the embodiment is Junit.

[0038] In the embodiment, the Junit version is two versions of 3.4 and 3.5, and its specific implementation method is:

[0039] Step 1: Construct an abstract syntax tree according to the historical version of the program source code and each class in the target version;

[0040] As an intermediate representation of programs, Abstract Syntax Tree (AST) is widely used in many fields such as code analysis and program analysis. It maps java source code into a tree form: each java source file is represented as a tree of AST nodes. Eclipse AST is an important part of Eclipse JDT, which is defined in the package org.eclipse.jdt.core.dom and used to represent all grammatical str...

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 code compatibility evaluation method oriented to software evolution, and analyzes and positions evolution reasons. The code compatibility evaluation method comprises the following steps: according to a source code, constructing a corresponding abstract syntax tree; extracting the attribute information of a class and an interface on the abstract syntax tree, and constructing a class model of the code; and on the basis of a binary compatible rule, carrying out evolution type distinguishing on the code, calculating the code compatibility, and showing an evaluation result. The technology can report reasons which cause the compatibility changes of the code according to a position where incompatibility evolution happens. The evaluation method automatically analyzes the source code, points out the position where incompatibility evolution happens in a program, solves the problems of subjectivity and low efficiency since manual search needs to be carried out when an incompatibility problem happens during code distribution, and lays a good foundation for automatically evaluating the code compatibility.

Description

technical field [0001] The invention relates to a software evolution-oriented code compatibility evaluation method, which belongs to the field of software maintenance and evolution. Background technique [0002] In the software life cycle, the software is constantly upgraded and changed to meet new requirements. Changes to software are often made under some external pressure, such as customers or industry competition. These changes will inevitably destroy the original structure of the program, increase the complexity of the program, and reduce the quality of the code. As a result, the maintenance cost of the software will be significantly increased, and the upgrade of the software will become more difficult. Any software development method and tool cannot avoid this problem. The later the software repair work is carried out, the higher the software maintenance cost will be, until the maintenance cost exceeds the cost of redeveloping the entire system. In order to solve thi...

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/44G06F11/36
CPCG06F8/71G06F11/3604
Inventor 李必信苗意盎廖力
Owner SOUTHEAST 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