1.1 --- a/emul/mini/src/main/java/java/lang/Class.java Fri Feb 01 18:35:21 2013 +0100
1.2 +++ b/emul/mini/src/main/java/java/lang/Class.java Thu Feb 14 13:17:19 2013 +0100
1.3 @@ -401,10 +401,15 @@
1.4 return cmpType != null && getComponentType().isAssignableFrom(cmpType);
1.5 }
1.6 String prop = "$instOf_" + getName().replace('.', '_');
1.7 - return hasProperty(cls, prop);
1.8 + return hasCnstrProperty(cls, prop);
1.9 }
1.10
1.11 -
1.12 + @JavaScriptBody(args = { "who", "prop" }, body =
1.13 + "if (who.cnstr.prototype[prop]) return true; else return false;"
1.14 + )
1.15 + private static native boolean hasCnstrProperty(Object who, String prop);
1.16 +
1.17 +
1.18 /**
1.19 * Determines if the specified {@code Class} object represents an
1.20 * interface type.