Skip to content

Commit 05236b5

Browse files
j2objc-copybaracopybara-github
authored andcommitted
Fix Proxy.java and :jre_tests_ios
PiperOrigin-RevId: 538406338
1 parent 875163b commit 05236b5

File tree

1 file changed

+3
-3
lines changed
  • jre_emul/android/platform/libcore/ojluni/src/main/java/java/lang/reflect

1 file changed

+3
-3
lines changed

jre_emul/android/platform/libcore/ojluni/src/main/java/java/lang/reflect/Proxy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ private static void checkNewProxyPermission(Class<?> caller, Class<?> proxyClass
999999
* {@code false} otherwise
10001000
* @throws NullPointerException if {@code cl} is {@code null}
10011001
*/
1002-
public static boolean isProxyClass(Class<?> cl) {
1003-
return Proxy.class.isAssignableFrom(cl) && proxyClassCache.containsValue(cl);
1004-
}
1002+
public static native boolean isProxyClass(Class<?> cl) /*-[
1003+
return [nil_chk(cl) isKindOfClass:[IOSProxyClass class]];
1004+
]-*/;
10051005

10061006
/**
10071007
* Returns the invocation handler for the specified proxy instance.

0 commit comments

Comments
 (0)