In my project I use ASM
to change methods signatures. I choose methods which are using RMI and change them this way:
from:
String f(int i, String s) {
...
}
to
String f(int i, String s, ThreadId t) {
log(t)
...
log(t)
}
and from
a.f(i,s);
to
a.f(i, s, t);
So both definition and calling is changed.
Surprisingly it works in some cases and ThreadId
is passed with control flow.
But one method cause:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.AbstractMethodError: some.package.SomeClass.method(I;String;ThreadId;)String;
I have no idea why this error occurs. Could you please explain it? Or maybe give some suggestions how I should solve it? Any help would be great!