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

David Holmes david.holmes at
Sun Aug 2 02:16:23 UTC 2015

On 1/08/2015 3:33 AM, Jörg Schaible wrote:
> 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?


for existing discussion.


> Cheers,
> jörg

More information about the core-libs-dev mailing list