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 2012/07/31 12:26:29 UTC

svn commit: r1367482 - in /lucene/pylucene/trunk/jcc: CHANGES jcc/cpp.py

Author: vajda
Date: Tue Jul 31 10:26:29 2012
New Revision: 1367482

URL: http://svn.apache.org/viewvc?rev=1367482&view=rev
Log:
fixed bug PYLUCENE-20 (Roman Chyla)

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

Modified: lucene/pylucene/trunk/jcc/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/CHANGES?rev=1367482&r1=1367481&r2=1367482&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Tue Jul 31 10:26:29 2012
@@ -3,6 +3,7 @@ Version 2.13 ->
  - fixed class initialization race bug PYLUCENE-17 (with Patrick J. McNerthney)
  - added support for initVM's vmargs to be a [list, of, args], PYLUCENE-19
  - added support for using full Java class names in Python via --use_full_names
+ - fixed bug PYLUCENE-20 (Roman Chyla)
  - 
 
 Version 2.12 -> 2.13

Modified: lucene/pylucene/trunk/jcc/jcc/cpp.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc/cpp.py?rev=1367482&r1=1367481&r2=1367482&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc/cpp.py (original)
+++ lucene/pylucene/trunk/jcc/jcc/cpp.py Tue Jul 31 10:26:29 2012
@@ -605,7 +605,7 @@ def jcc(args):
             done.update(importset)
             if moduleName:
                 for cls in importset:
-                    name = cls.getName().split_pkg('.')[-1]
+                    name = split_pkg(cls.getName(), '.')[-1]
                     if not use_full_names:
                         if name in pythonNames:
                             raise ValueError, (cls, 'python class name already in use, use --rename', name, pythonNames[name])