# US 9,355,011 B2 · Detecting potential class loader problems using the class search path sequence for each class loader

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,355,011 B2
- Document ID: US9355011B2
- Status: Granted
- Kind: B2
- Application number: 14/300,010
- Filed: 2014-06-09
- Published: 2015-12-10
- Granted: 2016-05-31
- Earliest claimed: 2014-06-09
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jinwoo Hwang
- Web page: https://patentgrep.com/patent/US9355011B2

## CPC

- G06F 11/3672: {Test management}
- G06F 8/315: {Object-oriented languages}
- G06F 8/70: Software maintenance or management
- G06F 8/75: Structural analysis for program understanding
- G06F 9/449: {Object-oriented method invocation or resolution}
- G06F 11/3608: {using formal methods, e.g. model checking, abstract interpretation (theorem proving G06N5/013)}
- G06F 11/362: Debugging of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, system and computer program product for identifying potential class loader problems prior to or during the deployment of the classes to the production environment. A set of class loaders is loaded into memory. The set of class loaders is arranged hierarchically into parent-child relationships. The class search path sequence for each class loader in the hierarchy is generated to detect and identify potential class loader problems. Those class loaders with a duplicate class in its class search path sequence are identified as those class loaders that may pose a potential problem. A message may then be displayed to the user identifying these class loaders as posing a potential problem. By identifying these class loaders prior to or during the deployment of the classes to the production environment, class loader problems may be prevented from occurring.

## Claims

### Claim 1

A computer program product for identifying potential class loader problems, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code comprising the programming instructions for:
loading a set of class loaders into memory;
arranging said set of class loaders hierarchically into parent-child relationships;
generating a class search path sequence for each class loader;
identifying one or more class loaders with a duplicate class in its class search path sequence;
marking a first class loader with a first level of severity of a potential problem in response to detecting a first class of a duplicate class in a class search path sequence of said first class loader as one of one or more classes of said first class loader;
marking a second class loader with a second level of severity of a potential problem in response to detecting a first class of a duplicate class in a class search path sequence of said second class loader that is not one of one or more classes of said second class loader, wherein said first level of severity of said potential problem is a greater potential problem than said second level of severity of said potential problem; and
displaying a message identifying said identified one or more class loaders as being potentially problematic.

### Claim 2 (depends on 1)

The computer program product as recited in claim 1, wherein the program code further comprises the programming instructions for:
composing said class search path sequence for a class loader by prefixing a parent node's class search path to one or more classes of said class loader in response to said class loader having a delegation mode of parent-first.

### Claim 3 (depends on 1)

The computer program product as recited in claim 1, wherein the program code further comprises the programming instructions for:
composing said class search path sequence for a class loader by postfixing a parent node's class search path to one or more classes of said class loader in response to a class loader having a delegation mode of parent-last.

### Claim 4 (depends on 1)

The computer program product as recited in claim 1, wherein said hierarchical arrangement is implemented by a stack.

### Claim 5 (depends on 1)

The computer program product as recited in claim 1, wherein said class search path sequence for each class loader is generated during one of the following: a compile time in a development environment and a build time in said development environment.

### Claim 6 (depends on 5)

The computer program product as recited in claim 5, wherein said development environment is a test system.

### Claim 7

A system, comprising:
a memory unit for storing a computer program for identifying potential class loader problems; and
a processor coupled to the memory unit, wherein the processor is configured to execute the program instructions of the computer program comprising:
loading a set of class loaders into memory;
arranging said set of class loaders hierarchically into parent-child relationships;
generating a class search path sequence for each class loader;
identifying one or more class loaders with a duplicate class in its class search path sequence;
marking a first class loader with a first level of severity of a potential problem in response to detecting a first class of a duplicate class in a class search path sequence of said first class loader as one of one or more classes of said first class loader;
marking a second class loader with a second level of severity of a potential problem in response to detecting a first class of a duplicate class in a class search path sequence of said second class loader that is not one of one or more classes of said second class loader, wherein said first level of severity of said potential problem is a greater potential problem than said second level of severity of said potential problem; and
displaying a message identifying said identified one or more class loaders as being potentially problematic.

### Claim 8 (depends on 7)

The system as recited in claim 7, wherein the program instructions of the computer program further comprises:
composing said class search path sequence for a class loader by prefixing a parent node's class search path to one or more classes of said class loader in response to said class loader having a delegation mode of parent-first.

### Claim 9 (depends on 7)

The system as recited in claim 7, wherein the program instructions of the computer program further comprises:
composing said class search path sequence for a class loader by postfixing a parent node's class search path to one or more classes of said class loader in response to a class loader having a delegation mode of parent-last.

### Claim 10 (depends on 7)

The system as recited in claim 7, wherein said hierarchical arrangement is implemented by a stack.

### Claim 11 (depends on 7)

The system as recited in claim 7, wherein said class search path sequence for each class loader is generated during one of the following: a compile time in a development environment and a build time in said development environment.

### Claim 12 (depends on 11)

The system as recited in claim 11, wherein said development environment is a test system.
