485 * verify it matches the given value.
486 */
487 private void assertClassData(Lookup lookup, Object value) throws ReflectiveOperationException {
488 Class<?> c = lookup.lookupClass();
489 Method m = c.getMethod("classData");
490 Object v = m.invoke(null);
491 assertEquals(value, v);
492 }
493
494 /*
495 * Load an Object from class data via condy and
496 * verify it matches the given value.
497 */
498 private void assertClassData(Lookup lookup, Object o, Object value) throws ReflectiveOperationException {
499 Class<?> c = lookup.lookupClass();
500 Method m = c.getMethod("classData");
501 Object v = m.invoke(o);
502 assertEquals(value, v);
503 }
504 }
505
506
|
485 * verify it matches the given value.
486 */
487 private void assertClassData(Lookup lookup, Object value) throws ReflectiveOperationException {
488 Class<?> c = lookup.lookupClass();
489 Method m = c.getMethod("classData");
490 Object v = m.invoke(null);
491 assertEquals(value, v);
492 }
493
494 /*
495 * Load an Object from class data via condy and
496 * verify it matches the given value.
497 */
498 private void assertClassData(Lookup lookup, Object o, Object value) throws ReflectiveOperationException {
499 Class<?> c = lookup.lookupClass();
500 Method m = c.getMethod("classData");
501 Object v = m.invoke(o);
502 assertEquals(value, v);
503 }
504 }
|