421 ResolvedJavaMethod method = metaAccess.lookupJavaMethod(m);
422 if (!method.isStatic() && !method.isFinal() && !method.getDeclaringClass().isLeaf() && !method.getDeclaringClass().isInterface()) {
423 assertTrue(method + " not available in " + receiverType, method.isInVirtualMethodTable(receiverType));
424 }
425 }
426 }
427 }
428
429 private Method findTestMethod(Method apiMethod) {
430 String testName = apiMethod.getName() + "Test";
431 for (Method m : getClass().getDeclaredMethods()) {
432 if (m.getName().equals(testName) && m.getAnnotation(Test.class) != null) {
433 return m;
434 }
435 }
436 return null;
437 }
438
439 // @formatter:off
440 private static final String[] untestedApiMethods = {
441 "invoke",
442 "newInstance",
443 "getDeclaringClass",
444 "getEncoding",
445 "getProfilingInfo",
446 "reprofile",
447 "getCompilerStorage",
448 "canBeInlined",
449 "shouldBeInlined",
450 "getLineNumberTable",
451 "getLocalVariableTable",
452 "isInVirtualMethodTable",
453 "toParameterTypes",
454 "getParameterAnnotation",
455 "getSpeculationLog",
456 "isFinal",
457 "$jacocoInit"
458 };
459 // @formatter:on
460
461 /**
|
421 ResolvedJavaMethod method = metaAccess.lookupJavaMethod(m);
422 if (!method.isStatic() && !method.isFinal() && !method.getDeclaringClass().isLeaf() && !method.getDeclaringClass().isInterface()) {
423 assertTrue(method + " not available in " + receiverType, method.isInVirtualMethodTable(receiverType));
424 }
425 }
426 }
427 }
428
429 private Method findTestMethod(Method apiMethod) {
430 String testName = apiMethod.getName() + "Test";
431 for (Method m : getClass().getDeclaredMethods()) {
432 if (m.getName().equals(testName) && m.getAnnotation(Test.class) != null) {
433 return m;
434 }
435 }
436 return null;
437 }
438
439 // @formatter:off
440 private static final String[] untestedApiMethods = {
441 "newInstance",
442 "getDeclaringClass",
443 "getEncoding",
444 "getProfilingInfo",
445 "reprofile",
446 "getCompilerStorage",
447 "canBeInlined",
448 "shouldBeInlined",
449 "getLineNumberTable",
450 "getLocalVariableTable",
451 "isInVirtualMethodTable",
452 "toParameterTypes",
453 "getParameterAnnotation",
454 "getSpeculationLog",
455 "isFinal",
456 "$jacocoInit"
457 };
458 // @formatter:on
459
460 /**
|