On Thu, 3 May 2012, Thomas Koch wrote:
thanks for the fixes and cleanup! I've updated from SVN and wrote the unit
test. Runs withtout errors (Tracebacks etc.) now, however there may be
some slight type mismatch issue still: the comparison of objects retrieved
from JArray and ArrayList respectively with the objects from the initial
JavaList does not match in case of the ArrayList (test yields 4 failures -
see below). That's with my newly built JCC2.12/PyLucene3.5 from branch_3x.
As far as I understand
elem0 = jArray[0] -> yields python object
elem0 = arrayList.get(0) -> yields wrapped Java object
Not sure if that's intended. In that case the test should be fixed ,-)
I fixed your patch to use cast() so as to unbox the boxed primitive types
(and strings) to resolve the failures.
Thank you for the patch, it's now checked in.
Andi..