Javassist v0.7 Release Notes

    • javassit.Loader was largely modified. javassist.UserLoader was deleted. Instead, Codebase was renamed to ClassPath and UserClassPath was added. Now programmers who want to customize Loader must write a class implementing UserClassPath instead of UserLoader. This change is for sharing class search paths between Loader and CtClass.CtClass(String).

    • CtClass.addField(), addMethod(), addConstructor(), addWrapper() were also largely modified so that it receives CtNewMethod, CtNewConstructor, or CtNewField. The static methods for creating these objects were added to the API.

    • Constructors are now represented by CtConstructor objects. CtConstructor is a subclass of CtMethod.

    • 🚚 CtClass.getUserAttribute() was removed. Use CtClass.getAttribute().

    • javassist.rmi.RmiLoader was added.

    • javassist.reflect.Metalevel._setMetaobject() was added. Now metaobjects can be replaced at runtime.