Re: Replacement for sun.misc.Unsafe.allocateInstance(Class) ?

2015-08-01 Thread Andrew Haley
On 31/07/15 18:33, Jörg Schaible wrote: > 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 t

Re: Replacement for sun.misc.Unsafe.allocateInstance(Class) ?

2015-08-01 Thread Florian Weimer
On 08/01/2015 10:57 AM, Andrew Haley wrote: > However, the security problems are great. I haven't heard any > suggestion about how to expose this feature to user-created libraries > without breaking Java security, and I suspect there may be none. Are the problems greater than those of general ref

Re: Replacement for sun.misc.Unsafe.allocateInstance(Class) ?

2015-08-01 Thread David Holmes
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