1.1 --- a/emul/src/main/java/java/lang/reflect/Method.java Fri Dec 28 08:48:08 2012 +0100
1.2 +++ b/emul/src/main/java/java/lang/reflect/Method.java Fri Dec 28 12:35:32 2012 +0100
1.3 @@ -57,7 +57,6 @@
1.4 private final String name;
1.5 private final Object data;
1.6 private final String sig;
1.7 - private int modifiers;
1.8
1.9 // Generics infrastructure
1.10
1.11 @@ -109,9 +108,12 @@
1.12 * @see Modifier
1.13 */
1.14 public int getModifiers() {
1.15 - return modifiers;
1.16 + return getAccess(data);
1.17 }
1.18 -
1.19 +
1.20 + @JavaScriptBody(args = "self", body = "return self.access;")
1.21 + private static native int getAccess(Object self);
1.22 +
1.23 /**
1.24 * Returns an array of {@code TypeVariable} objects that represent the
1.25 * type variables declared by the generic declaration represented by this