Are all compile-time constants inlined?
You can use String.intern() to get the desired effect, but should comment your code, because not many people know about this. i.e. public static final String configOption1 = “some option”.intern(); This will prevent the compile time inline. Since it is referring to the exact same string that the compiler will place in the perm, you … Read more