> > But I still have the problem reflected in the stack trace with GDB:
> > the "value" being extracted is not of the Python type JavaError (it's
> > of the Python type "Throwable"), and doesn't have the method
> > "getJavaException", while the "exc" *is* of type JavaError.  Either
> > the code in PyErr_SetJavaError() isn't correct, or the code in
> > throwPythonError() isn't correct.
> 
> Quite possibly so. If your contention is correct, then change line 565 in 
> functions.cpp to call 'getJavaException' on 'exc' instead  of 'value'.

Actually, I misspoke.  "exc" is of type "type" -- it's the "JavaError"
type object.  I think the right fix is to not call "getJavaException"
at all; you've got the Throwable right there in your hand already.

Bill
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to