Lines Matching refs:vh

25         private static final VarHandle vh = null;  field in VarHandleAccessorExceptionTests.NullReceiverTest
30 vh.set(3); in doTest()
43 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.UnsupportedAccessModeTest
48 vh = MethodHandles.lookup().findStaticVarHandle(cls, "b", boolean.class);
58 vh.isAccessModeSupported(VarHandle.AccessMode.GET_AND_BITWISE_AND); in doTest()
61 vh.getAndBitwiseAnd(true); in doTest()
74 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.WrongArgumentTypeCausingWrongMethodTypeTest
79 vh = MethodHandles.lookup().findVarHandle(cls, "s", short.class);
87 vh.set(this, (short) 0xcafe); in doTest()
89 vh.setVolatile(this, System.out); // System.out is a PrintStream, not short! in doTest()
103 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.TooManyArgumentsCausingWrongMethodTypeTest
108 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
116 vh.set(this, 0x12345678); in doTest()
118 vh.setVolatile(this, 0x5a5a55aa, 0xc3c30f0f); in doTest()
131 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.TooFewArgumentsCausingWrongMethodTypeTest
136 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
145 vh.compareAndSet(this, 33, 44); in doTest()
148 updated = (boolean) vh.compareAndSet(this, 44); in doTest()
162 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.ReturnTypeCausingWrongMethodTypeTest
167 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
176 vh.getAndSet(this, 44); in doTest()
179 runtime = (Runtime) vh.getAndSet(this, 44); in doTest()
194 private static final VarHandle vh; field in VarHandleAccessorExceptionTests.UnsupportedAccessModePreemptsWrongMethodTypeExceptionTest
199 vh = MethodHandles.lookup().findStaticVarHandle(cls, "b", boolean.class);
208 boolean supported = vh.isAccessModeSupported(VarHandle.AccessMode.GET_AND_BITWISE_AND); in doTest()
212 vh.getAndBitwiseAnd(System.out); in doTest()