> > 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 ,-)
> 
> If the array is an array of object, then objects you get, including
instances of
> java.lang.Integer. If the array is array of int, for example, then ints
you get.
> 
Ah I see - it's that the toArray() method runs in "Python land" still while
ArrayList is in JVM already, right!? (In fact the ArrayList constructor
itself calls toArray() too but then inside JVM and JCC probably does the
conversion to Java Objects while the Python2Java frontier is passed I
guess...)

This mix of Python and Java is sometimes confusing, but that's the price you
have to pay ,-)

Regards,
Thomas 



Reply via email to