Re: AccessController.doPrivileged and default methods

2017-07-07 Thread Sean Mullan
On 7/6/17 10:33 AM, Sean Mullan wrote: On 7/5/17 4:01 PM, Adam Petcher wrote: Very interesting. The exception originates in the VM, so I added the hotspot-dev list to the discussion. It looks like the VM either can't find the method, or it decides that it's not the right kind of method. Rig

Re: AccessController.doPrivileged and default methods

2017-07-06 Thread Sean Mullan
On 7/5/17 4:01 PM, Adam Petcher wrote: Very interesting. The exception originates in the VM, so I added the hotspot-dev list to the discussion. It looks like the VM either can't find the method, or it decides that it's not the right kind of method. Right. The check that is causing this error

Re: AccessController.doPrivileged and default methods

2017-07-05 Thread Adam Petcher
Very interesting. The exception originates in the VM, so I added the hotspot-dev list to the discussion. It looks like the VM either can't find the method, or it decides that it's not the right kind of method. On 7/4/2017 7:57 AM, Michael Rasmussen wrote: Hi I was playing around with having

AccessController.doPrivileged and default methods

2017-07-04 Thread Michael Rasmussen
Hi I was playing around with having an easy way to have doPrivileged call void methods via lambdas/method references, and noticed that if you use AccessController.doPrivileged(PrivilegedAction), and the run method is implemented as a default method, then you get the following exception: java.lang.