Unfortunately, Javassist does not provide
a method for doing such a change.
Since it is possible in principle, I've append
this feature to my ToDo list.
Give me a few weeks. I'll do it as soon as
I am also looking for the feature to change a static final field.
Is this now possible and how can I do it?
According to my memory, changing the value of a static field is not straightforward because
javac may inline the value of static constant field at occurrences of that field even in different
class files. In that case, after compilation, Javassist cannot see where the original value is
embedded in class files and have to be modified.