public byte[] transform(ClassLoader loader, String className, Class<?> clazz,
ProtectionDomain domain, byte[] bytes)
throws IllegalClassFormatException {
return inspectClass(className, clazz, bytes);
}
private byte[] inspectClass(String name, Class<?> clazz, byte[] b) {
System.out.println("here"); //OK I see this print
ClassPool pool = ClassPool.getDefault();
System.out.println("inclass"); //can't see it !!
}
Điều gì có thể xảy ra trong ClassPool.getDefault();
?ClassPool.getDefault(); không có gì trong Javassist
bạn có thấy ngoại lệ không? –
@ThomasUhrig no :(rất lạ tôi sẽ trở nên điên rồ - khi tôi xóa printLn tôi có thể thấy ngoại lệ ... – JohnJohnGa