[ https://issues.apache.org/jira/browse/PYLUCENE-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17736851#comment-17736851 ]
Andi Vajda commented on PYLUCENE-28: ------------------------------------ I see 2 things: - if a constructor takes no arguments, like org.apache.lucene.document.Document(), then anything passed to it is ignored. - all constructor wrappers have a kwds parameter but it's ignored. Both could be fixed at the cost of extra code that raises an error if kwds is not empty. Also, extra code would have to be generated for checking that args is empty for contructores not taking any args. Is it worth it ? > JCC reuses JVM instances in impl, if compile() is called twice. > --------------------------------------------------------------- > > Key: PYLUCENE-28 > URL: https://issues.apache.org/jira/browse/PYLUCENE-28 > Project: PyLucene > Issue Type: Improvement > Environment: jcc-svn-head (2.18-pre) > Reporter: Martin Scherer > Priority: Blocker > Labels: patch > Attachments: jvm_instance_check.patch > > > If you import jcc.cpp to call compile yourself (a wrapped setup.py script to > generate a wrapper on the fly, which seems to be a common use case), the > current version complains about the JVM already being initialized before. > The patch first checks for a running instance and creates one, if none is > being found. > For myself, this is a blocker, since it raises otherwise. > Best, > Martin -- This message was sent by Atlassian Jira (v8.20.10#820010)