I've tried to changed a method modifier form "private synchronized" to "public" I've got the following message. I'll be happy for any help.
java.lang.RuntimeException: the class is frozen
at javassist.CtClass.checkModify(CtClass.java:186)
at javassist.CtClassType.checkModify(CtClassType.java:105)
at javassist.CtBehavior.setModifiers(CtBehavior.java:66)
at javassist.CtMethod.setModifiers(CtMethod.java:219)
That's you tried to change a method modifier
in the class that you had loaded or written out.
Javassist freezes a class when it is loaded so
that further changes will be prohibited.
You can call defrost() in CtClass.
Chiba