diff -r 8cddb5d3e18f -r 44a5802816be emul/src/main/java/java/lang/reflect/Method.java --- a/emul/src/main/java/java/lang/reflect/Method.java Fri Dec 28 08:48:08 2012 +0100 +++ b/emul/src/main/java/java/lang/reflect/Method.java Fri Dec 28 12:35:32 2012 +0100 @@ -57,7 +57,6 @@ private final String name; private final Object data; private final String sig; - private int modifiers; // Generics infrastructure @@ -109,9 +108,12 @@ * @see Modifier */ public int getModifiers() { - return modifiers; + return getAccess(data); } - + + @JavaScriptBody(args = "self", body = "return self.access;") + private static native int getAccess(Object self); + /** * Returns an array of {@code TypeVariable} objects that represent the * type variables declared by the generic declaration represented by this