Thanks Andrej, That's a good idea. I already pushed the patch for 8145228 but I opened a new bug for this work: https://bugs.openjdk.java.net/browse/JDK-8152192
Pete On 3/18/16 5:30 AM, Andrej Golovnin wrote: > Hi Pete, > >>> http://cr.openjdk.java.net/~ptbrunet/JDK-8145228/webrev.01/ > please consider using method reference instead of a lambda in: > > 1411 AccessibleRole role = > InvocationUtils.invokeAndWait(() -> { > 1412 return ac.getAccessibleRole(); > 1413 }, ac); > > You can rewrite it as: > > 1411 AccessibleRole role = > InvocationUtils.invokeAndWait(ac::getAccessibleRole, ac); > > In the first case the Java compiler would generate a syntactic method > and in the second case not. > > Best regards, > Andrej Golovnin