小编Cal*_*wok的帖子

Can I modify the byte code of a Java method in the runtime?

I am writing a plugin of another large java program .

I want to modify some byte code of some java method of the java program during runtime, so that I can intercept the method calls (namely, inject some hooking code into the method).

Any way can achieve this?

PS:

I've checked the following approaches:

1.change the classloader of the java program. (we CANNOT change it)
2.use java proxy. (We CANNOT use java proxy, because java proxy would create a …

java proxy hook bytecode javassist

4
推荐指数
2
解决办法
6355
查看次数

标签 统计

bytecode ×1

hook ×1

java ×1

javassist ×1

proxy ×1