diff -r 5d1e20215d12 -r 683719ffcfe7 emul/src/main/java/java/lang/Class.java --- a/emul/src/main/java/java/lang/Class.java Tue Dec 04 14:49:01 2012 +0100 +++ b/emul/src/main/java/java/lang/Class.java Tue Dec 04 15:32:18 2012 +0100 @@ -747,7 +747,11 @@ */ public Method getMethod(String name, Class... parameterTypes) throws SecurityException { - throw new SecurityException(); + Method m = Method.findMethod(this, name, parameterTypes); + if (m == null) { + throw new SecurityException(); // XXX: NoSuchMethodException + } + return m; } /**