主权项 |
1. A method for resolving classes from a core dump file in order to debug a program, the method comprising:
determining, by one or more computer processors, a list of classes found in a core dump file; determining, by one or more computer processors, one or more classes requested by a classloader; determining, by one or more computer processors, one or more sets of classes requested by the classloader that are found in the core dump file; determining, by one or more computer processors, a constructor for the determined one or more sets of classes; locating, by one or more computer processors, an instance of an object in the core dump file, wherein the object is an instance of a class of the one or more sets of classes; copying, by one or more computer processors, one or more object fields from the object into a new object; and creating, by one or more computer processors, a proxy for initializing the new object using the determined constructor and the copied one or more object fields. |