1.1 --- a/emul/src/main/java/java/lang/Class.java Thu Dec 20 08:59:47 2012 +0100
1.2 +++ b/emul/src/main/java/java/lang/Class.java Fri Dec 28 08:48:08 2012 +0100
1.3 @@ -32,6 +32,7 @@
1.4 import java.lang.reflect.Method;
1.5 import java.lang.reflect.TypeVariable;
1.6 import org.apidesign.bck2brwsr.core.JavaScriptBody;
1.7 +import org.apidesign.bck2brwsr.emul.MethodImpl;
1.8
1.9 /**
1.10 * Instances of the class {@code Class} represent classes and
1.11 @@ -640,7 +641,7 @@
1.12 * @since JDK1.1
1.13 */
1.14 public Method[] getMethods() throws SecurityException {
1.15 - return Method.findMethods(this);
1.16 + return MethodImpl.findMethods(this);
1.17 }
1.18
1.19 /**
1.20 @@ -771,7 +772,7 @@
1.21 */
1.22 public Method getMethod(String name, Class<?>... parameterTypes)
1.23 throws SecurityException {
1.24 - Method m = Method.findMethod(this, name, parameterTypes);
1.25 + Method m = MethodImpl.findMethod(this, name, parameterTypes);
1.26 if (m == null) {
1.27 throw new SecurityException(); // XXX: NoSuchMethodException
1.28 }