+ svc fixed
This commit is contained in:
parent
e9d7eb967f
commit
e16b05494d
@ -116,7 +116,7 @@ public class SimpleVersionControl {
|
|||||||
ClassReader classReader = new ClassReader(FileUtils.getResource(plugin, target.replace(".", "/") + ".class"));
|
ClassReader classReader = new ClassReader(FileUtils.getResource(plugin, target.replace(".", "/") + ".class"));
|
||||||
ClassWriter classWriter = new ClassWriter(0);
|
ClassWriter classWriter = new ClassWriter(0);
|
||||||
ClassVisitor classVisitor = new SimpleClassVisitor(this, classWriter);
|
ClassVisitor classVisitor = new SimpleClassVisitor(this, classWriter);
|
||||||
classReader.accept(classVisitor, 0);
|
classReader.accept(classVisitor, ClassReader.EXPAND_FRAMES);
|
||||||
classWriter.visitEnd();
|
classWriter.visitEnd();
|
||||||
classVisitor.visitEnd();
|
classVisitor.visitEnd();
|
||||||
Class<?> newClass = AsmClassLoader.createNewClass(target, classWriter.toByteArray());
|
Class<?> newClass = AsmClassLoader.createNewClass(target, classWriter.toByteArray());
|
||||||
|
Loading…
Reference in New Issue
Block a user