The following warning is produced when run in a JRE > 9.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.twitter.jvm.Hotspot (file:/hcom/servers/pros/pros.jar) to field sun.management.ManagementFactoryHelper.jvm
WARNING: Please consider reporting this to the maintainers of com.twitter.jvm.Hotspot
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
|
Class.forName("sun.management.ManagementFactoryHelper").getDeclaredField("jvm") |
The following warning is produced when run in a JRE > 9.
util/util-jvm/src/main/scala/com/twitter/jvm/Hotspot.scala
Line 38 in 6f587b3