emul/src/main/java/java/lang/Class.java
branchreflection
changeset 262 683719ffcfe7
parent 261 5d1e20215d12
child 264 ed0c92c81ea4
     1.1 --- a/emul/src/main/java/java/lang/Class.java	Tue Dec 04 14:49:01 2012 +0100
     1.2 +++ b/emul/src/main/java/java/lang/Class.java	Tue Dec 04 15:32:18 2012 +0100
     1.3 @@ -747,7 +747,11 @@
     1.4       */
     1.5      public Method getMethod(String name, Class<?>... parameterTypes)
     1.6          throws SecurityException {
     1.7 -        throw new SecurityException();
     1.8 +        Method m = Method.findMethod(this, name, parameterTypes);
     1.9 +        if (m == null) {
    1.10 +            throw new SecurityException(); // XXX: NoSuchMethodException
    1.11 +        }
    1.12 +        return m;
    1.13      }
    1.14  
    1.15      /**