interrupting Jython code from Java

Jason Sachs <[email protected]> Wed, 8 Feb 2017 09:28:28 -0700
Newsgroups gmane.comp.lang.jython.user
Message-ID <CAOo6sOOxuAXnUhi8Qx10O-tXdvqY6AshLKd_+tm16gt5GJNUfA@mail.gmail.com>
I've got a Java application calling FreeMarker which can call methods on
Jython objects, and would like to handle the case where there's a bug in my
Jython code and somehow I have an infinite loop.

This message from 2002
https://sourceforge.net/p/jython/mailman/message/10226687/ says

---
A java thread running a jython interpreter is no more and no less than a
java
thread.
Interrupting such a thread is just as difficult as interrupting a java
thread, because the jython interpreter does not check for thread
interrupted
status. You might extend the interpreter to do this check, but then it
would
run slower. Since the interpreter can call any java code that does not
necessarily check the interrupted status, such a check would not be a
strong
guarantee anyway.
---

Is this still the case for Jython 2.5.3 and 2.7.0?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users