You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2010/04/04 05:19:37 UTC
svn commit: r930614 - in /lucene/pylucene/trunk/jcc: CHANGES jcc/python.py
Author: vajda
Date: Sun Apr 4 03:19:35 2010
New Revision: 930614
URL: http://svn.apache.org/viewvc?rev=930614&view=rev
Log:
- fixed bug with not heeding type parameter for --sequence get method
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=930614&r1=930613&r2=930614&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Sun Apr 4 03:19:35 2010
@@ -9,6 +9,7 @@ Version 2.5 ->
- added support for --find-jvm-dll parameter (Bill Janssen)
- fixed bug with not inheriting type parameters to inner parameterized classes
- added support for of_() method to set instance type parameters
+ - fixed bug with not heeding type parameter for --sequence get method
-
Version 2.4 -> 2.5
Modified: lucene/pylucene/trunk/jcc/jcc/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc/python.py?rev=930614&r1=930613&r2=930614&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc/python.py Sun Apr 4 03:19:35 2010
@@ -1295,7 +1295,11 @@ def python(env, out_h, out, cls, superCl
not returnType.isPrimitive() and '((jobject) NULL)' or '')
line(out, indent + 1, 'OBJ_CALL(result = self->object.%s((%s) n));',
methodName, typename(method.getParameterTypes()[0], cls, False))
- line(out, indent + 1, returnValue(cls, returnType, 'result'))
+ if generics:
+ line(out, indent + 1, returnValue(cls, returnType, 'result',
+ method.getGenericReturnType()))
+ else:
+ line(out, indent + 1, returnValue(cls, returnType, 'result'))
line(out, indent, '}')
while indent: