I think lambda would not help much since target type is ambiguous (PrivilegedAction vs PrivilegedExceptionAction)?
-Aleksey. On 09/10/2014 02:55 PM, Ivan Gerasimov wrote: > > If a lambda were used instead of an anonymous class, it would save us > one line of code :-) > > Sincerely yours, > Ivan > > On 10.09.2014 14:11, Claes Redestad wrote: >> Hi, >> >> please review this simple patch to avoid raising >> PrivilegedActionExceptions >> when failing to find a class in URLClassLoader. >> >> bug: https://bugs.openjdk.java.net/browse/JDK-8057936 >> webrev: http://cr.openjdk.java.net/~redestad/8057936/webrev.2/ >> /Claes >> >> >