Accessing return values and exceptions
First Claim
Patent Images
1. A method for adding functionality in order to access information, comprising:
- accessing existing object code of a first application, said existing object code includes a first method, said first method produces a result when said first method is executed, said existing object code is not configured to provide access to said result by an additional method for which such access is desired;
editing said existing object code to provide modified object code which provides access to said result by said additional method when said first method is executed; and
executing said modified object codes;
said editing comprises modifying said existing object code for;
storing said result, said result is from an operand stack;
preparing said operand stack for an invocation of said additional method;
invoking said additional method, including providing said result to said additional method; and
resetting said operand stack with respect to said result to a state existing prior to said step of storing said result.
3 Assignments
0 Petitions
Accused Products
Abstract
One or more new methods are added to existing object code. The existing object code includes a first method that is capable of producing a result. New code is added to the first method. The new code provides the result to one or more of the new methods. After the modification, the result (e.g. a return value or exception) from the first method can be accessed and used by other threads, processes, systems, entities etc. that were not originally programmed to access the result or exception.
39 Citations
40 Claims
-
1. A method for adding functionality in order to access information, comprising:
-
accessing existing object code of a first application, said existing object code includes a first method, said first method produces a result when said first method is executed, said existing object code is not configured to provide access to said result by an additional method for which such access is desired; editing said existing object code to provide modified object code which provides access to said result by said additional method when said first method is executed; and executing said modified object codes; said editing comprises modifying said existing object code for; storing said result, said result is from an operand stack; preparing said operand stack for an invocation of said additional method; invoking said additional method, including providing said result to said additional method; and resetting said operand stack with respect to said result to a state existing prior to said step of storing said result. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27)
-
-
28. One or more processor readable storage devices having processor readable code embodied on said processor readable storage devices, said processor readable code for programming one or more processors to perform a method comprising:
-
accessing existing object code, said existing object code includes a first method, said first method produces a result when said first method is executed, said existing object code is not configured to provide access to said result by an additional method for which such access is desired; and modifying said existing object code to provide modified object code that, when executed, provides said result to said additional method; said step of modifying includes; adding code that stores said result for said first method from an operand stack; adding code that prepares said operand stack for an invocation of said additional method; adding code that invokes said additional method, including providing said result to said additional method; and adding code that resets said operand stack with respect to said result to a state existing prior to storing said result. - View Dependent Claims (29, 30, 31, 32)
-
-
33. An apparatus that adds functionality in order to access information, comprising:
-
a communication interface; a processor readable storage device; and one or more processors in communication with said processor readable storage device and said communication interface, said one or more processors perform a method comprising; access existing object code, said existing object code includes a first method, said first method produces a result when said first method is executed, said existing object code is not configured to provide access to said result by an additional method for which such access is desired; and modifying said existing object code to provide modified object code that, when executed, provides said result to said additional method; said step of modifying includes; adding code that stores said result for said first method from an operand stack; adding code that prepares said operand stack for an invocation of said additional method; adding code that invokes said additional method including providing said result to said additional method; and adding code that resets said operand stack with respect to said result to a state existing prior to storing said result. - View Dependent Claims (34, 35, 36)
-
-
37. An apparatus that adds functionality to existing code in order to access information, comprising:
-
a communication interface; a processor readable storage device; and one or more processors in communication with said processor readable storage device and said communication interface, said one or more processors perform a method for modifying byte code for a first method, said byte code is not configured to provide a result to a second method when said second method is invoked, said method comprising; storing a result for said first method from an operand stack, preparing said operand stack for an invocation of said second method, invoking said second method, including providing said result to said second method, and resetting said operand stack with respect to said result to a state existing prior to said step of storing said result. - View Dependent Claims (38, 39, 40)
-
Specification