I do not have a lot of knowledge about the details but from the outset it seems like a rather bold move to me.
I do not have a lot of knowledge about the details but from the outset it seems like a rather bold move to me.
I learned this the hard way, when a C++ JNI extension I was working on accidentally overwrote the pooled value for zero, and all hell broke loose...
The cache can be extended on startup with env var `java.lang.Integer.IntegerCache.high `
https://github.com/openjdk/jdk/blob/cc278dbb8a1ca0754d584270...
https://thedailywtf.com/articles/Disgruntled-Bomb-Java-Editi...
True = False
and of course in JavaScript undefined = "a string"In this example, it would throw an IllegalAccessException, because java.base doesn't open java.lang.
You can make it not throw by adding `--add-opens java.base/java.lang=ALL-UNNAMED` or similar to the command line, but breaking things like this is becoming harder.