mirror of
https://github.com/EsotericSoftware/reflectasm.git
synced 2025-03-26 20:10:40 +08:00
Make generated FieldAccess class synthetic
Should prevent a JaCoCo exception when its Java Agent tries to instrument the class java.lang.instrument.IllegalClassFormatException: Error while instrumenting foo/bar/ApplicationStackFrameValueFieldAccess
This commit is contained in:
parent
e3a88f6362
commit
2f3a4f3a15
@ -147,7 +147,7 @@ public abstract class FieldAccess {
|
||||
String classNameInternal = className.replace('.', '/');
|
||||
|
||||
ClassWriter cw = new ClassWriter(0);
|
||||
cw.visit(V1_6, ACC_PUBLIC + ACC_SUPER, accessClassNameInternal, null, "com/esotericsoftware/reflectasm/FieldAccess",
|
||||
cw.visit(V1_6, ACC_PUBLIC + ACC_SUPER + ACC_SYNTHETIC, accessClassNameInternal, null, "com/esotericsoftware/reflectasm/FieldAccess",
|
||||
null);
|
||||
insertConstructor(cw);
|
||||
insertGetObject(cw, classNameInternal, fields);
|
||||
|
Loading…
Reference in New Issue
Block a user