byte-buddy icon indicating copy to clipboard operation
byte-buddy copied to clipboard

the new Version of AgentBuilder.Transformer.transform() can't support current application with byte-buddy of 1.10.21

Open ljqseu opened this issue 2 years ago • 4 comments

our applications use the byte-buddy of version 1.10.21, it has four parameters in the AgentBuilder.Transformer.transform(). However ,in the version 1.14.8, it has five parameters in the AgentBuilder.Transformer.transform(). The new parameter of ProtectionDomain is useless for us ,but the application have to restart to reload the new transform,which is very ugly for user.

so , can you reserve the transform method with four parameters in the new version ,which is very kind for the current application.thank you very much.

image

ljqseu avatar Oct 23 '23 13:10 ljqseu

Not sure I follow? If you dynsmically reload your agent with a new version of Byte Buddy, why can't you reload the linked code?

raphw avatar Oct 23 '23 18:10 raphw

已收到阁下邮件,谢谢!                                   刘家强                    

ljqseu avatar Oct 23 '23 18:10 ljqseu

in our program ,the linked code is reload into bootstrap classloader .When reload the agent ,it will use last transform method, not the new one. Could you please add Transformer.transform() with four paramenters in the new version.

ljqseu avatar Oct 24 '23 06:10 ljqseu

No, the method is part of a functional interface.

By adding Byte Buddy to the boot loader, it's not updateable anyways, though

raphw avatar Oct 26 '23 21:10 raphw