On 05/07/2016 09:03, Remi Forax wrote:
Very true, I wasn't paying attending to why it is using Unsafe in the first place. That said, the context seems to be a standard (=platform) module rather than a user module.The other solution is to use a VarHandle instead of Unsafe for setting the final field, i don't think that letting unprivileged module to access to Unsafe is a good idea.
-Alan