From 1fb0542545912a66f68a018a49152a2c9d0125ad Mon Sep 17 00:00:00 2001 From: jfrijters Date: Thu, 25 Nov 2010 08:52:11 +0000 Subject: [PATCH] Made getStackAccessControlContext() parameters typed. --- runtime/openjdk.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/openjdk.cs b/runtime/openjdk.cs index b38f1081..59de578f 100644 --- a/runtime/openjdk.cs +++ b/runtime/openjdk.cs @@ -4589,13 +4589,13 @@ namespace IKVM.NativeCode.java { static class AccessController { - public static object getStackAccessControlContext(object context, object callerID) + public static object getStackAccessControlContext(global::java.security.AccessControlContext context, global::ikvm.@internal.CallerID callerID) { #if FIRST_PASS return null; #else List array = new List(); - bool is_privileged = GetProtectionDomains(array, (global::ikvm.@internal.CallerID)callerID, new StackTrace(1)); + bool is_privileged = GetProtectionDomains(array, callerID, new StackTrace(1)); if (array.Count == 0) { if (is_privileged && context == null) @@ -4603,7 +4603,7 @@ namespace IKVM.NativeCode.java return null; } } - return CreateAccessControlContext(array, is_privileged, (jsAccessControlContext)context); + return CreateAccessControlContext(array, is_privileged, context); #endif } @@ -4620,7 +4620,7 @@ namespace IKVM.NativeCode.java && method.Name == "doPrivileged") { is_privileged = true; - global::java.lang.Class caller = ((global::ikvm.@internal.CallerID)callerID).getCallerClass(); + global::java.lang.Class caller = callerID.getCallerClass(); protection_domain = caller == null ? null : java.lang.Class.getProtectionDomain0(caller); } else