mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-02 04:08:34 +08:00
fix spring aop generated classes major version is 46, do not support ldc class problem. #1223
This commit is contained in:
parent
c59fa48229
commit
25c5fb7e7b
@ -300,6 +300,11 @@ public class Enhancer implements ClassFileTransformer {
|
||||
affect.addMethodAndCount(inClassLoader, className, methodNode.name, methodNode.desc);
|
||||
}
|
||||
|
||||
// https://github.com/alibaba/arthas/issues/1223
|
||||
if (classNode.version < Opcodes.V1_5) {
|
||||
classNode.version = Opcodes.V1_5;
|
||||
}
|
||||
|
||||
byte[] enhanceClassByteArray = AsmUtils.toBytes(classNode, inClassLoader);
|
||||
|
||||
// 增强成功,记录类
|
||||
|
Loading…
Reference in New Issue
Block a user