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

David Holmes david.holmes at oracle.com
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?

See:

http://mail.openjdk.java.net/pipermail/jdk9-dev/2015-June/002342.html

for existing discussion.

David

> Cheers,
> jörg
>



More information about the core-libs-dev mailing list