-
Notifications
You must be signed in to change notification settings - Fork 960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throw NoSuchFieldException when call getInt() method #565
Comments
@jbachorik Hello, My friend can you help me. |
Sorry for long time to reply. My main job was keeping me busy ... This seems like a bug in the code resolving the fields by reflection. The problem here is that the actual class name of the intercepted instance will be The reason for Field fld = field("HelloWorld", "field");
int value = getInt(fld, thiz);
... |
In fact, this is a bug. Is that right. |
Yes. Any contributions would be welcome. |
Ok, I've fixed the issue, I'll add unit tests later and I'll make a pull request after verification. |
Enviroment Infomation
OS
macOS Monterey
Version 12.3.1
java -version
java version "17.0.3" 2022-04-19 LTS
Java(TM) SE Runtime Environment (build 17.0.3+8-LTS-111)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.3+8-LTS-111, mixed mode, sharing)
btrace version
BTrace v.2.2.2 (c8f81cc)
target
script content
command
btrace ${pid} HelloWorldTrace.java
what happen
modify script
Reprint when I modify the script, the
clazz
printHelloWorldExt
. The complete information is as followsconfused
HelloWorld
but clazz printHelloWorldExt
The text was updated successfully, but these errors were encountered: