Re: Defining anonymous classes

2014-08-15 Thread John Rose
On Aug 15, 2014, at 5:03 AM, Florian Weimer wrote: > On 08/14/2014 10:15 PM, Mark Roos wrote: >> Look into sun.Misc.Unsafe > > [and at defineAnonymousClass(Class, byte[], Object[])] > > Thanks. Could we turn this into a supported API, with a suitable security > manager check? Hi Florian and

Re: Defining anonymous classes

2014-08-15 Thread Mark Roos
The Java folks will have to answer this, but I have heard that there are thoughts on how to make unsafe safe and portable.  You might ask on the jigsaw list. -Mark > On Aug 15, 2014, at 5:03 AM, "Florian Weimer" wrote: > > On 08/14/2014 10:15 PM, Mark Roos wrote: > > Look into sun.Misc.Unsafe

Re: Defining anonymous classes

2014-08-15 Thread Florian Weimer
On 08/14/2014 10:15 PM, Mark Roos wrote: Look into sun.Misc.Unsafe [and at defineAnonymousClass(Class, byte[], Object[])] Thanks. Could we turn this into a supported API, with a suitable security manager check? I'm surprised there aren't any callers of this method in Fedora. Anonymous cla