inheritance - Java: do methods inherit a JRE super class, like classes inherit Object? -


as far know, object in java.

i looking through java jdk , experimenting creating custom jdk allows me perform more debugging operations. example, can manipulate every object changing object.java class.

my question is: methods inherit class jre well, can modify parent eg. make method save it's passed arguments?

thanks.

if want enhance debugging, can start looking @ jvmti has offer. before that, see if jdi, higher level (and therefore easier use) api built on top of jvmti suits needs.

and although you're saying doesn't sound possible in itself, similar effect can achieved instrumentation, using byte code manipulating library, bcel.

as specific example, if want record method invocations , parameters, setting breakpoint jdi , querying call stack can trick.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -