test/jdk/java/util/concurrent/tck/ThreadLocalRandomTest.java
changeset 48843 21efc1774302
parent 48541 946e34c2dec9
equal deleted inserted replaced
48842:a5a2e4770524 48843:21efc1774302
    88         if (!testImplementationDetails) return;
    88         if (!testImplementationDetails) return;
    89 
    89 
    90         ThreadLocalRandom rnd = ThreadLocalRandom.current();
    90         ThreadLocalRandom rnd = ThreadLocalRandom.current();
    91         final java.lang.reflect.Method m;
    91         final java.lang.reflect.Method m;
    92         try {
    92         try {
    93             m = ThreadLocalRandom.class.getDeclaredMethod(
    93             m = ThreadLocalRandom.class.getDeclaredMethod("next", int.class);
    94                     "next", new Class[] { int.class });
       
    95             m.setAccessible(true);
    94             m.setAccessible(true);
    96         } catch (SecurityException acceptable) {
    95         } catch (SecurityException acceptable) {
    97             // Security manager may deny access
    96             // Security manager may deny access
    98             return;
    97             return;
    99         } catch (Exception ex) {
    98         } catch (Exception ex) {