lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r733222 - in /lucene/pylucene/trunk/jcc: CHANGES jcc/python.py
Date Sat, 10 Jan 2009 01:43:51 GMT
Author: vajda
Date: Fri Jan  9 17:43:51 2009
New Revision: 733222

URL: http://svn.apache.org/viewvc?rev=733222&view=rev
Log:
 - fixed bug where thread's JNIEnv was not set before calling findClass()

Modified:
    lucene/pylucene/trunk/jcc/CHANGES
    lucene/pylucene/trunk/jcc/jcc/python.py

Modified: lucene/pylucene/trunk/jcc/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/CHANGES?rev=733222&r1=733221&r2=733222&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Fri Jan  9 17:43:51 2009
@@ -4,6 +4,7 @@
 Version 2.1 ->
 ------------------
  - JCC now a subproject of the Apache PyLucene project
+ - fixed bug where thread's JNIEnv was not set before calling findClass()
  - 
 
 Version 2.0 -> 2.1

Modified: lucene/pylucene/trunk/jcc/jcc/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc/python.py?rev=733222&r1=733221&r2=733222&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc/python.py Fri Jan  9 17:43:51 2009
@@ -305,6 +305,8 @@
         line(out, indent, '}')
         return
 
+    line(out, indent, 'PythonGIL gil(jenv);')
+
     returnType = method.getReturnType()
     returnName = returnType.getName()
     if returnName != 'void':
@@ -312,8 +314,6 @@
              typename(returnType, cls, False),
              not returnType.isPrimitive() and '((jobject) NULL)' or '')
 
-    line(out, indent, 'PythonGIL gil(jenv);')
-
     sigs = []
     decrefs = []
     args = []



Mime
View raw message