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 !!
}
Co może się zdarzyć w ClassPool.getDefault();
?ClassPool.getDefault(); nie robi nic w Javassist
Czy widzisz jakiś wyjątek? –
@ThomasUhrig nie :(bardzo dziwne Stanie się szalony - kiedy wyjmę printLn widzę wyjątek ... – JohnJohnGa