Hi all,

I have a problem which I think is due to typecasting,

I have wrapped a function that has following input types:

TLE(jint, jchar, jint, jint, const ::java::lang::String &, jint, jint,
const ::org::orekit::time::AbsoluteDate &, jdouble, jdouble, jdouble,
jdouble, jdouble, jdouble, jdouble, jdouble, jint, jdouble);

I have been trying all kind of stuff to call it from python, but get

InvalidArgsError: (<type 'TLE'>, '__init__', (5555, JArray<char>u'U',
2000, 1, 'A', 0, 1, <AbsoluteDate: 2012-01-26T11:00:00.000>,
0.0011421088155377755, 1.5670255537196003e-12, 0.0, 0.0,
0.7059490305174144, 5.583519461969352, 4.184206970170655,
0.7002697291314248, 0, 0.0007279))

(in different kind of fashion depending on how far my tests has gone)

My feeling now is that there is something with the input type jchar
and java String. Both are actually single characters that I want to
send, but in python I use (as a start) 'A' syntax for both. Do I need
to typecast it to a jchar? I tried in the example above to cast it
using JArray_char but no success.

How does JCC differ between when i want to send 'A' as a char and as a
string? or does it try it as both?

Many thanks for any comment,
Best regards
/Petrus

Reply via email to