samedi 18 avril 2020

Java reflection without invoking static initializer

In java when you look up a class with Class.forName, set a field using Field.set or call a method using Method.invoke, the static initializer (<clinit> method) is invoked first. Is there a way to avoid or disable this behavior, without changing the bytecode?





Aucun commentaire:

Enregistrer un commentaire