1.1 --- a/emul/mini/src/main/java/java/lang/Class.java Tue Feb 05 08:27:42 2013 +0100
1.2 +++ b/emul/mini/src/main/java/java/lang/Class.java Mon Feb 25 19:00:08 2013 +0100
1.3 @@ -403,10 +403,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.