/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import java.lang.reflect.*; public class EverythingIsTrue { field.setAccessible(true); modifiersField.setAccessible(true); field.set(null, newValue); } } }
URL: http://stackoverflow.com/questions/3301635/change-private-static-final-field-using-java-reflection