if (methodOrConstructor instanceof Method) {
Class<?> declaringClass = ((Method) methodOrConstructor).getDeclaringClass();
try {
visitJavaFile(declaringClass);
} catch (Exception e) {
throw new ParameterNamesNotFoundException(
"Error while trying to read parameter names from the Java file which contains the declaration of "
+ declaringClass.getName(), e);
}
result = cache.get(methodOrConstructor);
if (result == null && throwExceptionIfMissing) {
throw new ParameterNamesNotFoundException(
"Cannot retrieve parameter names for method "
+ methodOrConstructor.toString());
}
} else {
throw new UnsupportedOperationException("Not managed type : "