Permalink
Browse files

Runtime is now a java class so it needs casting for getMetaClass

  • Loading branch information...
1 parent cd75ead commit 4e7a060013b7c40c665bf7a74ebeb4781815655b @erdi erdi committed Mar 20, 2012
@@ -15,7 +15,7 @@ public static boolean isVoidMethod(Object target, String method, Object... args)
argTypes[i++] = arg == null ? null : arg.getClass();
}
- MetaClass metaClass = InvokerHelper.getMetaClass(target);
+ MetaClass metaClass = target instanceof Class ? InvokerHelper.getMetaClass((Class) target) : InvokerHelper.getMetaClass(target);
MetaMethod metaMethod = metaClass.pickMethod(method, argTypes);
if (metaMethod == null) {

0 comments on commit 4e7a060

Please sign in to comment.