On 29/06/15 10:06, Paul Sandoz wrote:
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() {

Hmmm... Strange indeed. Maybe I did a mistake - or maybe it had to do
with using return directly without passing through an intermediary
Boolean variable?

NetBeans didn't suggest replacing with diamonds either - which it
usually does - but then maybe it was busy scanning classpath ;-)

best,

-- daniel

Reply via email to