setFinalStatic

open fun setFinalStatic(clazz: Class<out Any>, fieldName: String, newValue: Any)

Convenience version of setFinalStatic.

See also


open fun setFinalStatic(field: Field, newValue: Any)

Set a static final field. N.B. This will only work if the given field has not been read before. This is due to internal caching in the JVM for fields.

Throws