Getting a live view of environment variables (Gradle and JDK 9)

Martin Buchholz martinrb at google.com
Wed May 10 22:10:05 UTC 2017


You're already acquiring superpowers and voiding any warranty by calling
putenv from JNI.  Why not go further and do your reflective shenanigans via
JNI as well?  In practice, if hotspot has started up and only one java
thread is doing anything, putenv is unlikely to cause a crash (and probably
none of your users have reported any such crash).


More information about the core-libs-dev mailing list