# HG changeset patch # User dl # Date 1455999576 28800 # Node ID c263d0e3b073ae4707b48f0df1b6fc3c25bf4b5e # Parent 3d50784f2dc2f721fe26f19a84c58ec3e2d9674e 8150014: java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java fails with NoClassDefFoundError Reviewed-by: martin, psandoz, darcy, mhaupt, dholmes diff -r 3d50784f2dc2 -r c263d0e3b073 jdk/src/java.base/share/classes/java/util/SplittableRandom.java --- a/jdk/src/java.base/share/classes/java/util/SplittableRandom.java Fri Feb 19 09:55:37 2016 -0800 +++ b/jdk/src/java.base/share/classes/java/util/SplittableRandom.java Sat Feb 20 12:19:36 2016 -0800 @@ -225,9 +225,11 @@ private static final AtomicLong defaultGen = new AtomicLong(initialSeed()); private static long initialSeed() { - java.security.PrivilegedAction action = - () -> Boolean.getBoolean("java.util.secureRandomSeed"); - if (java.security.AccessController.doPrivileged(action)) { + if (java.security.AccessController.doPrivileged( + new java.security.PrivilegedAction() { + public Boolean run() { + return Boolean.getBoolean("java.util.secureRandomSeed"); + }})) { byte[] seedBytes = java.security.SecureRandom.getSeed(8); long s = (long)seedBytes[0] & 0xffL; for (int i = 1; i < 8; ++i) diff -r 3d50784f2dc2 -r c263d0e3b073 jdk/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java --- a/jdk/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java Fri Feb 19 09:55:37 2016 -0800 +++ b/jdk/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java Sat Feb 20 12:19:36 2016 -0800 @@ -134,9 +134,11 @@ private static final AtomicLong seeder = new AtomicLong(initialSeed()); private static long initialSeed() { - java.security.PrivilegedAction action = - () -> Boolean.getBoolean("java.util.secureRandomSeed"); - if (java.security.AccessController.doPrivileged(action)) { + if (java.security.AccessController.doPrivileged( + new java.security.PrivilegedAction() { + public Boolean run() { + return Boolean.getBoolean("java.util.secureRandomSeed"); + }})) { byte[] seedBytes = java.security.SecureRandom.getSeed(8); long s = (long)seedBytes[0] & 0xffL; for (int i = 1; i < 8; ++i)