On Jun 27, 2015, at 2:13 PM, Daniel Fuchs <daniel.fu...@oracle.com> wrote:
> On 6/27/15 12:57 PM, Peter Levart wrote: >> Hi Daniel, >> >> Just a question. Would diamonds on anonymous instance creation expressions >> work in these cases? > I tried it - it didn't work. > You would have to use a local variable for that. > That's odd i would of expected it to work. Here's Joe's patch to changes in the JDK: http://cr.openjdk.java.net/~darcy/8078467.0/jdk.patch (Search for "new PrivilegedAction" in the patch.) e.g. an expression in java.io.ObjectInputStream: http://hg.openjdk.java.net/jdk9/dev/jdk/file/93ced310c728/src/java.base/share/classes/java/io/ObjectInputStream.java#l1265 private static boolean auditSubclass(final Class<?> subcl) { Boolean result = AccessController.doPrivileged( new PrivilegedAction<>() { public Boolean run() { Paul.