Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 485 Bytes
require 'test/unit'
require 'java'
class TestJavaWrapperDeadlock < Test::Unit::TestCase
import org.jruby.test.Runner
import java.lang.Runnable
def test_deadlock_due_to_java_object_wrapping_locking_on_java_instances
Runner.getRunner.runJob Runnable.impl {
Thread.new do
puts "geting runner instance"
runner = Runner.getRunner
puts "got runner instance"
assert runner.isRunning, "runner should be running"
end.join
}
end
end
Something went wrong with that request. Please try again.