|
From: Christian B. <chr...@zy...> - 2010-11-03 09:28:13
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/02/2010 10:59 PM, Alex Grönholm wrote:
> 02.11.2010 18:38, Christian Blichmann kirjoitti:
> Hi there,
>
> TL;DR: Calling methods from an embedded Jython script does nothing when
> using JSR-223 and Jython 2.5.1, while Jython 2.2.1 just works fine.
>> Works fine for me.
Mind you, using Jython itself works as expected, only interfacing with
Java doesn't work for me.
>> Jython 2.5.x contains its own JSR-223 engine so don't
>> try to use the old engine jar with the new Jython. That leads to...well,
>> you already know ;)
Same result with Jython 2.5.2 RC2, sorry:
+--- Jython 2.5.2 RC2 (full)
v
$ java -cp .:jython.jar myscript.ScriptingTest
getAString() returns: None
callAVoid():
Just tried with Windows 7 x64 and Java 1.6.0_22, also same result:
C:\TEMP>java -cp.:jython.jar myscript
getAString() returns: None
callAVoid():
Anything else I can do? I'd rather not use the interpreter directly and
only go through the JSR-223 API, since the application I'm embedding
Jython in also has to support Jruby and JavaScript and using a different
API would be a pain, maintenance and testing wise.
I'll also try with the latest trunk version to see if that changes
anything (I'll have to build it first, so it might take a while).
> [...]
Thanks for you quick replies, guys.
Cheers,
- --
Christian Blichmann
========================================================================
zynamics GmbH - Address: Grosse Beckstrasse 3, 44787 Bochum, Germany
- Phone: +49 (234) 6 87 07 86 - Fax: +49 (234) 57 00 02 00
- UstId: DE814229418 - Trade Register: HRB 9626
========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJM0SrWAAoJEOF0gv4uh+kf2PAH/0evtbfaciXgM3s7iPuxVWl5
pto7Uq6GgBdbjH5LG08ppAbFY0Lg1aGUsyERCAmTcAbtAJXqevtDBF+8Tdzhw+NQ
LQ7qBrzXgoOYNQrsOlm3Q2Xk3YiDcLhrJHJQwJ6JpQMW9wDqbOqYzaRHYYrDTUhw
LF06zqJ7ExZmO920SAFIBQmzyd30Mox3EJ/ZDSyn2nwb8V1PD+/pspxoGyApZlXe
qmVnrvsOVhNeqlVPek2enHgsEVx1icQR7QmVLZvVTM9zLO2YHb0MnHc5BQoM4/c8
BtvMplVSMavqMziVO9sVcODlUH+yoKqmFiiMZ+zvr47umxaDzMUSxNYUw4lFGrE=
=OyDE
-----END PGP SIGNATURE-----
|