Skip to content

Instantly share code, notes, and snippets.

@headius
Created March 2, 2015 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/8fe5091a66dc15595b6b to your computer and use it in GitHub Desktop.
Save headius/8fe5091a66dc15595b6b to your computer and use it in GitHub Desktop.
===============================================================================
Error: test_concurrent_proxy_class_initialization_dead_lock(TestHigherJavasupport)
: NameError: cannot load Java class Bug1621A
file:/Users/headius/projects/jruby/lib/jruby.jar!/jruby/java/java_package_module_template.rb:9:in `const_get'
/Users/headius/projects/jruby/test/jruby/test_higher_javasupport.rb:908:in `test_concurrent_proxy_class_initialization_dead_lock'
905: timeout = 0.5; threads_to_kill = []
906: begin
907: threads = %w{ A B C D E F G H }.map do |sym|
=> 908: Thread.new { Java::Default.const_get "Bug1621#{sym}" }
909: end
910: threads.each do |thread|
911: threads_to_kill << thread if thread.join(timeout).nil?
===============================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment