aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/native/jni/java-lang
diff options
context:
space:
mode:
authorMark Wielaard <mark@gcc.gnu.org>2005-11-18 00:59:33 +0000
committerMark Wielaard <mark@gcc.gnu.org>2005-11-18 00:59:33 +0000
commitca9e049bc145ae985bc0e2dd6079dacdd51717ac (patch)
tree4c44aaa3ed1ee1b4f15732664c05cfc9214e1fa9 /libjava/classpath/native/jni/java-lang
parentfb3a09c214e19c97d3751003d9a2ea8008f5005e (diff)
downloadgcc-ca9e049bc145ae985bc0e2dd6079dacdd51717ac.zip
gcc-ca9e049bc145ae985bc0e2dd6079dacdd51717ac.tar.gz
gcc-ca9e049bc145ae985bc0e2dd6079dacdd51717ac.tar.bz2
Imported GNU Classpath gcj-import-20051117.
* gnu/java/net/protocol/file/Connection.java: Removed, fully merged. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r107153
Diffstat (limited to 'libjava/classpath/native/jni/java-lang')
-rw-r--r--libjava/classpath/native/jni/java-lang/java_lang_VMDouble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/classpath/native/jni/java-lang/java_lang_VMDouble.c b/libjava/classpath/native/jni/java-lang/java_lang_VMDouble.c
index 846df2e..076f42b 100644
--- a/libjava/classpath/native/jni/java-lang/java_lang_VMDouble.c
+++ b/libjava/classpath/native/jni/java-lang/java_lang_VMDouble.c
@@ -71,6 +71,11 @@ Java_java_lang_VMDouble_initIDs (JNIEnv * env, jclass cls __attribute__ ((__unus
{
DBG ("unable to get class java.lang.Double\n") return;
}
+ clsDouble = (*env)->NewGlobalRef(env, clsDouble);
+ if (clsDouble == NULL)
+ {
+ DBG ("unable to register class java.lang.Double as global ref\n") return;
+ }
isNaNID = (*env)->GetStaticMethodID (env, clsDouble, "isNaN", "(D)Z");
if (isNaNID == NULL)
{