Can't interrupt busy Ruby instance from Java - InterruptException ignored.
---------------------------------------------------------------------------
Key: JRUBY-4135
URL: http://jira.codehaus.org/browse/JRUBY-4135
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.3
Environment: all
Reporter: Micah Martin
public void testInturruptingRubyInstance() throws Exception
{
Thread thread = new Thread(){
public void run()
{
JavaEmbedUtils.initialize(Collections.EMPTY_LIST).runFromMain(new
ByteArrayInputStream("sleep(5)".getBytes()), "Sleeper");
}
};
thread.start();
long before = System.currentTimeMillis();
thread.interrupt();
thread.join();
long millis = System.currentTimeMillis() - before;
assertEquals(("ruby ignored interrupt for " + millis + " millis."), true,
millis < 2000);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email