[pylucene-dev] can't override QueryParser.parse()

Bill Janssen janssen at parc.com
Wed Nov 14 20:07:16 PST 2007


> I changed your sample code to raise a JavaError with a Java RuntimeException 
> as argument in getBooleanQuery() and stepping through throwPythonError() 
> shows that the code there is correct. 'value' is the JavaError exception 
> instance and calling 'getJavaException()' on it returns the 
> RuntimeException.
> 
> If there is a bug, it's elsewhere.

I don't think this would test the right behavior to tickle this bug.
Try throwing an exception (say, an instance of java.lang.Throwable)
from a Java class, instead of a Python class.

Bill


More information about the pylucene-dev mailing list