I have a class with a private static final field that, unfortunately, I need to change it at run-time.
private static final
Using reflection I get this error: java.lan
java.lan
I also integrated it with joor library
Just use
Reflect.on(yourObject).set("finalFieldName", finalFieldValue);
Also I fixed an issue with override which the previous solutions seem to miss. However use this very carefully, only when there's no other good solution.
override