diff options
Diffstat (limited to 'openjdk/sun/misc/SharedSecrets.java')
-rw-r--r-- | openjdk/sun/misc/SharedSecrets.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openjdk/sun/misc/SharedSecrets.java b/openjdk/sun/misc/SharedSecrets.java index 03c1ffb5..af2174c9 100644 --- a/openjdk/sun/misc/SharedSecrets.java +++ b/openjdk/sun/misc/SharedSecrets.java @@ -47,6 +47,7 @@ public class SharedSecrets { private static JavaLangAccess javaLangAccess = LangHelper.getJavaLangAccess(); private static JavaIOAccess javaIOAccess; private static JavaNetAccess javaNetAccess; + private static JavaNetHttpCookieAccess javaNetHttpCookieAccess; private static JavaNioAccess javaNioAccess; private static JavaSecurityProtectionDomainAccess javaSecurityProtectionDomainAccess; private static JavaSecurityAccess javaSecurityAccess; @@ -77,6 +78,16 @@ public class SharedSecrets { return javaNetAccess; } + public static void setJavaNetHttpCookieAccess(JavaNetHttpCookieAccess a) { + javaNetHttpCookieAccess = a; + } + + public static JavaNetHttpCookieAccess getJavaNetHttpCookieAccess() { + if (javaNetHttpCookieAccess == null) + unsafe.ensureClassInitialized(java.net.HttpCookie.class); + return javaNetHttpCookieAccess; + } + public static void setJavaNioAccess(JavaNioAccess jna) { javaNioAccess = jna; } |