Searched refs:privateStaticField (Results 1 – 1 of 1) sorted by relevance
402 private static String privateStaticField = "privateStaticValue"; field in Main.UnreflectTester537 Field privateStaticField = UnreflectTester.class.getDeclaredField("privateStaticField"); in testUnreflects() local539 mh = MethodHandles.lookup().unreflectGetter(privateStaticField); in testUnreflects()544 mh = MethodHandles.lookup().unreflectSetter(privateStaticField); in testUnreflects()549 privateStaticField.setAccessible(true); in testUnreflects()550 mh = MethodHandles.lookup().unreflectGetter(privateStaticField); in testUnreflects()551 privateStaticField.set(null, "updatedStaticValue"); in testUnreflects()554 mh = MethodHandles.lookup().unreflectSetter(privateStaticField); in testUnreflects()555 privateStaticField.set(null, "updatedStaticValue"); in testUnreflects()557 assertEquals("updatedStaticValue2", (String) privateStaticField.get(null)); in testUnreflects()