Class 'java.io.ObjectStreamClass' could not be processed by com.zeroturnaround.javarebel.boot.processor.ObjectStreamClassCBP@null: java.lang.RuntimeException: org.javassist.NotFoundException: java.io.ObjectStreamClass
at org.javassist.bytecode.CodeAttribute.copy(CodeAttribute.java:144)
at org.javassist.bytecode.AttributeInfo.copyAll(AttributeInfo.java:253)
at org.javassist.bytecode.MethodInfo.compact(MethodInfo.java:157)
at org.javassist.bytecode.ClassFile.compact(ClassFile.java:242)
at org.javassist.CtClassType.toBytecode(CtClassType.java:1586)
at org.javassist.CtClass.toBytecode(CtClass.java:1521)
...
Caused by: org.javassist.NotFoundException: java.io.ObjectStreamClass
at org.javassist.ClassPool.get(ClassPool.java:430)
at org.javassist.bytecode.CodeAttribute.copyBootstrapMethod(CodeAttribute.java:481)
at org.javassist.bytecode.CodeAttribute.copyCode(CodeAttribute.java:436)
at org.javassist.bytecode.CodeAttribute.copyCode(CodeAttribute.java:379)
at org.javassist.bytecode.CodeAttribute.(CodeAttribute.java:95)
at org.javassist.bytecode.CodeAttribute.copy(CodeAttribute.java:139)
... 24 more
I saw that src\main\javassist\bytecode\CodeAttribute.java has a method copyBootstrapMethod with
ClassPool classPool = ClassPool.getDefault();
Maybe it should use a classpool that the client can determine instead of always using the default one?
Class 'java.io.ObjectStreamClass' could not be processed by com.zeroturnaround.javarebel.boot.processor.ObjectStreamClassCBP@null: java.lang.RuntimeException: org.javassist.NotFoundException: java.io.ObjectStreamClass
at org.javassist.bytecode.CodeAttribute.copy(CodeAttribute.java:144)
at org.javassist.bytecode.AttributeInfo.copyAll(AttributeInfo.java:253)
at org.javassist.bytecode.MethodInfo.compact(MethodInfo.java:157)
at org.javassist.bytecode.ClassFile.compact(ClassFile.java:242)
at org.javassist.CtClassType.toBytecode(CtClassType.java:1586)
at org.javassist.CtClass.toBytecode(CtClass.java:1521)
...
Caused by: org.javassist.NotFoundException: java.io.ObjectStreamClass
at org.javassist.ClassPool.get(ClassPool.java:430)
at org.javassist.bytecode.CodeAttribute.copyBootstrapMethod(CodeAttribute.java:481)
at org.javassist.bytecode.CodeAttribute.copyCode(CodeAttribute.java:436)
at org.javassist.bytecode.CodeAttribute.copyCode(CodeAttribute.java:379)
at org.javassist.bytecode.CodeAttribute.(CodeAttribute.java:95)
at org.javassist.bytecode.CodeAttribute.copy(CodeAttribute.java:139)
... 24 more
I saw that src\main\javassist\bytecode\CodeAttribute.java has a method copyBootstrapMethod with
ClassPool classPool = ClassPool.getDefault();
Maybe it should use a classpool that the client can determine instead of always using the default one?