Browse Prior Art Database

A Method and System for Resolving Library Dependency Issues by Recommending an Ordered List of Libraries

IP.com Disclosure Number: IPCOM000234744D
Publication Date: 2014-Jan-31
Document File: 2 page(s) / 22K

Publishing Venue

The IP.com Prior Art Database

Abstract

A method and system is disclosed for resolving library dependency issues by recommending an ordered list of libraries.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 51% of the total text.

Page 01 of 2

A Method and System for Resolving Library Dependency Issues by Recommending an Ordered List of Libraries

A library dependency issue arises when a missing reference to an unknown third party library is encountered while executing target source code of a target library. In such cases, an appropriate third party library for resolving the dependency issue needs to be identified.

Disclosed is a method and system for resolving library dependency issues by recommending an ordered list of libraries.

The method and system includes receiving from a user, information identifying a target library, and a list of other libraries being developed by the user. For example, information obtained from the user identifies the target library as foobar.jar (Java* archive) and another library being developed as someapi.jar. The method and system subsequently decompiles the target library to obtain target source code. Similarly, source code for the other libraries is obtained by decompiling the other libraries.

Thereafter, the method and system collects a list of references from the target source code. The references can be, but are not limited to, package, class and method references. For instance, a package reference collected from the target source code can be 'a.b.c.LibraryClass.update' - 'a.b.c'. Similarly, a class reference and a method reference collected from the target source code can be, but is not limited to, 'LibraryClass', and 'update' respectively.

The method and system subsequently looks up a global repository storing source code for a plurality of libraries in order to, identify one or more known libraries with references matching the references collected from the target source code. In an embodiment, the method and system executes a matching algorithm for identifying the one or more known libraries. Additionally, the matching algorithm may be executed by a distributed network of computers. The matching algorithm initializes a match counter for each known library in the glo...