Hi Andi, Thanks again. With the new JCC I encountered new errors - about "already used class names" - patch attached.
I would also like to propose a change, to allow for more flexible mechanism of generating Python class names. The patch doesn't change the default pylucene behaviour, but it gives people a way to replace class names with patterns. I have noticed that there are more same-name classes from different packages in the new lucene (and it becomes worse when one has to deal with both lucene and solr). I can confirm the test_test_BinaryDocument.py crashes the JVM no more. Roman On Tue, Jul 10, 2012 at 8:54 AM, Andi Vajda <va...@apache.org> wrote: > > Hi Roman, > > > On Mon, 9 Jul 2012, Roman Chyla wrote: > >> Thanks, I am attaching a new patch that adds the missing test base. >> Sorry for the tabs, I was probably messing around with a few editors >> (some of them not configured properly) > > > I integrated your test class (renaming it to fit the naming scheme used). > Thanks ! > > >>>>>> So far, found one serious problem, crashes VM -- see. eg >>>>>> test/test_BinaryDocument.py - when getting the document using: >>>>>> reader.document(0) > > > test/test_BInaryDocument.py doesn't seem to crash the VM but fails because > of some API changes. I suspect the crash to be some issue related to using > an older jcc. > > I see a comment saying: "couldn't find any combination with lucene4.0 where > it would raise errors". Most of these unit tests are straight ports from the > original Java version. If you're stumped about a change, check the original > Java test, it may have changed too. > > Andi.. >