Mercurial > hg > icedtea11
view patches/jamvm/pr2775-cache_api.patch @ 2655:624150627c20
PR2775: JamVM lacks JVM_GetResourceLookupCacheURLs introduced by jdk8u40
2016-03-31 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR2775: JamVM lacks JVM_GetResourceLookupCacheURLs
introduced by jdk8u40
* Makefile.am:
(ICEDTEA_PATCHES): Add PR2775 patch.
* NEWS: Updated.
2015-12-22 Xerxes R?nby <xerxes@gudinna.com>
PR2775: JamVM lacks JVM_GetResourceLookupCacheURLs
introduced by jdk8u40
* patches/jamvm/pr2775-cache_api.patch:
Provide a minimal implementation of the lookup
cache API which basically says we don't implement it.
author | Andrew John Hughes <gnu_andrew@member.fsf.org> |
---|---|
date | Fri, 01 Apr 2016 05:20:52 +0100 |
parents | |
children |
line wrap: on
line source
commit 25b39703b2c3468f666f6175ff94e46526d402a7 Author: Xerxes Rånby <xerxes@gudinna.com> Date: Tue Dec 22 13:33:44 2015 +0100 OpenJDK 8: Add JDK8u JDK-8061651 API. IcedTea PR2775. Implement minimal JVM functionality to tell JDK8u that the JDK-8061651 API is unsupported by JamVM JVM_GetResourceLookupCacheURLs JVM_GetResourceLookupCache JVM_KnownToNotExist Signed-off-by: Xerxes Rånby <xerxes@gudinna.com> diff --git a/src/classlib/openjdk/jvm.c b/src/classlib/openjdk/jvm.c index 971ac75..955621d 100644 --- jamvm.old/jamvm/src/classlib/openjdk/jvm.c +++ jamvm/jamvm/src/classlib/openjdk/jvm.c @@ -666,6 +666,35 @@ void JVM_SetClassSigners(JNIEnv *env, jclass cls, jobjectArray signers) { } +/* JVM_GetResourceLookupCacheURLs + is part of the + JDK-8061651 JDK8u API +*/ + +jobjectArray JVM_GetResourceLookupCacheURLs(JNIEnv *env, jobject loader) { + return NULL; // tell OpenJDK 8 that the lookup cache API is unavailable +} + +/* JVM_GetResourceLookupCache + is unused however it is part of the + JDK-8061651 JDK8u API +*/ + +jintArray JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_name) { + UNIMPLEMENTED("JVM_GetResourceLookupCache"); + return NULL; // tell OpenJDK 8 that the lookup cache is unavailable +} + +/* JVM_KnownToNotExist + is unused however it is part of the + JDK-8061651 JDK8u API +*/ + +jboolean JVM_KnownToNotExist(JNIEnv *env, jobject loader, const char *classname) { + UNIMPLEMENTED("JVM_KnownToNotExist"); + return JNI_FALSE; // tell OpenJDK 8 we don't know whether it exists or not +} + /* JVM_GetProtectionDomain */ jobject JVM_GetProtectionDomain(JNIEnv *env, jclass cls) {