jeudi 12 mai 2022

Is it possible to set private static final field using Reflection in JDK 17 [duplicate]

I am trying to upgrade my application Java version from v1.8 to v17. There are some unit tests which are using Reflection to set value of private, static, final fields. I tried using VarHandle but no luck.





Aucun commentaire:

Enregistrer un commentaire