Message5444
I made a bit more time (at the expense of many, many other things I should be doing...) to fix this up. I think it's fine for JSR 223 purposes now. At some point (probably March) I will refactor this so the thread-local behavior is in a PythonInterpreter subclass. Another useful behavior for non-JSR 223 embedders, I think, would be to have shared globals and per-thread locals.
Do note that it doesn't create per-thread locals by default to preserve the existing behavior, but if you create a Bindings object and bind it, it should work.
I included a simple threaded test case. If this doesn't work for you, it would help if you could modify ScriptEngineTest.java with a failing test case.
You can build & run this single test case class as follows:
ant -emacs singlejavatest -Dtest=ScriptEngineTest |
|
Date |
User |
Action |
Args |
2010-01-21 00:37:18 | nriley | set | messageid: <1264034238.02.0.00430472745763.issue1426@psf.upfronthosting.co.za> |
2010-01-21 00:37:18 | nriley | set | recipients:
+ nriley, tuska, emblemparade |
2010-01-21 00:37:17 | nriley | link | issue1426 messages |
2010-01-21 00:37:17 | nriley | create | |
|