Patent ID: 8938722
Filing Date: 2015-01-20
Classification: G06F

Abstract:
1. A method for using context information to locate errors, the method comprising: inserting, by a computer, an object reference into program code suspected of causing an error, the object reference having an initial class name; responsive to execution of the program code, the computer generating a new class name for the object reference comprising the context information; setting, by the computer, an object with the new class name as the object reference inserted into the program code suspected of causing the error, wherein the new class name of the object is located in computer memory in use by the executing program code; and creating, by the computer, a record of the computer memory in use by the executing program code, the record including the context information in the form of the new class name of the object, wherein the computer generating the new class name for the object reference comprising the context information includes: the computer determining whether the new class name is currently located in a registry of class names; the computer determining whether a number of classes in the registry is less than a maximum number of classes; and responsive to determining the new class name is not located in the registry, and the number of classes in the registry is less than the maximum number of classes, the computer adding the new class name to the registry.