Message5444

Author nriley
Recipients emblemparade, nriley, tuska
Date 2010-01-21.00:37:14
SpamBayes Score 6.661338e-15
Marked as misclassified No
Message-id <1264034238.02.0.00430472745763.issue1426@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-01-21 00:37:18nrileysetmessageid: <1264034238.02.0.00430472745763.issue1426@psf.upfronthosting.co.za>
2010-01-21 00:37:18nrileysetrecipients: + nriley, tuska, emblemparade
2010-01-21 00:37:17nrileylinkissue1426 messages
2010-01-21 00:37:17nrileycreate