8161129 Unsafe::getUnsafe should allow the platform class loader to access it

Alan Bateman Alan.Bateman at oracle.com
Mon Jul 18 16:37:57 UTC 2016

On 18/07/2016 17:33, Peter Levart wrote:

> Hi Paul,
> Just curious, what was the purpose of hiding a public method in a 
> public class in an exported package from reflection? I'm talking about 
> sun.misc.Unsafe::getUnsafe ...
> Regards, Peter
As I recall, it was an effort in JDK 6 (and prior to OpenJDK) to make it 
less tempting to use directly. It didn't work :-)


More information about the core-libs-dev mailing list