Replacement for sun.misc.Unsafe.allocateInstance(Class<?>) ?

Jörg Schaible joerg.schaible at gmx.de
Fri Jul 31 17:33:20 UTC 2015


Hello guys,

there's a lot of talk about making sun.misc.Unsafe unaccessible in JDK 9 ... 
however, there seems no replacement for the allocateInstance method.

XStream is relying heavily on this functionality and without it the library 
will no longer be able to deserialize a lot of objects from XML. What are 
the long-term options? 

Cheers,
jörg




More information about the core-libs-dev mailing list