-
Notifications
You must be signed in to change notification settings - Fork 193
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
ClassFileTransformer.transform is not called when class is redefined #222
Comments
I've tried a junit test from the owb-plugin and the method |
Yes, I think it's registered correctly. It's initialised, listeners with I'll provide some context: I can try to create and share small project with my plugin if it helps. P.S.: I'm not sure why ProxyPlugin is actually called since it's using pretty similar |
Dcevm redefines all classes extended from redefined class, that's the reason why you see the proxy class. ProxyPlugin redefines (rebuilds) Proxy classes (java proxy, cglib) in second step - after base class is redefined and after some timeout. |
mybatis-plugin-reproduction.zip
Thank you in advance! |
May be the problem is in debugger that does not stop in the method when redefinition is triggered from debugger itself. |
I added log statement to So, is it a bug or a feature of debugger? And is there a workaround for this? |
Hi
I'm trying to implement a plugin for HotSwapAgent and noticed that the method annotated with
@OnClassLoadEvent(classNameRegexp = ".*", events = {LoadEvent.REDEFINE})
is not called when I'm trying to hotswap any class.After some debugging process I found out that
HotswapTransformer.transform
(subclass ofClassFileTransformer
) is not called for the class I tried to hotswap.That is why I think that the problem is in VM, but let me know if I'm wrong, please.
JVM I'm using:
HotSwapAgent version: 1.4.2-SNAPSHOT
OS: MacOS
The text was updated successfully, but these errors were encountered: