Home
last modified time | relevance | path

Searched refs:privateStaticField (Results 1 – 1 of 1) sorted by relevance

/art/test/956-methodhandles/src/
DMain.java402 private static String privateStaticField = "privateStaticValue"; field in Main.UnreflectTester
537 Field privateStaticField = UnreflectTester.class.getDeclaredField("privateStaticField"); in testUnreflects() local
539 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()