harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r574881 - in /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared: archiveglob.c zip.c
Date Wed, 12 Sep 2007 10:28:02 GMT
Author: hindessm
Date: Wed Sep 12 03:27:58 2007
New Revision: 574881

URL: http://svn.apache.org/viewvc?rev=574881&view=rev
Log:
Fixing jni check warning.

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/archiveglob.c
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/archiveglob.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/archiveglob.c?rev=574881&r1=574880&r2=574881&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/archiveglob.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/archiveglob.c
Wed Sep 12 03:27:58 2007
@@ -150,5 +150,5 @@
   /* clean up class references */
   classRef = JCL_CACHE_GET (env, CLS_java_util_zip_ZipEntry);
   if (classRef)
-    (*env)->DeleteWeakGlobalRef (env, (jweak) classRef);
+    (*env)->DeleteGlobalRef (env, classRef);
 }

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c?rev=574881&r1=574880&r2=574881&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c (original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c Wed
Sep 12 03:27:58 2007
@@ -304,7 +304,7 @@
   JCLZipFileLink *zipfileHandles;
 
   javaClass = (*env)->FindClass (env, "java/util/zip/ZipEntry");
-  weakJavaClass = (*env)->NewWeakGlobalRef (env, javaClass);
+  weakJavaClass = (*env)->NewGlobalRef (env, javaClass);
   if (!weakJavaClass)
     return;
   mid =



Mime
View raw message