defs[i] = new ClassDefinition(array[i],
classes.get(array[i]));
inst.redefineClasses(defs);
}
} catch (NoSuchMethodException e) {
throw new InternalException(e);
} catch (IllegalAccessException e) {
throw new InternalException(e);
} catch (InvocationTargetException e) {
throw new UserException(e.getCause());
} catch (IOException e) {
throw new InternalException(e);
} catch (ClassNotFoundException e) {
throw new InternalException(e);
} catch (UnmodifiableClassException e) {
throw new InternalException(e);
} finally {
if (inst != null && t != null)
inst.removeTransformer(t);
}
}