-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Tests
spec/mongoid/contextual/mongo/documents_loader_spec.rb fails on JRuby, but passes on MRI. Integration tests that uses this functionality pass on JRuby.
Mongoid::Contextual::Mongo::DocumentsLoader state management #initialize initializes in pending state Failure/Error: Unable to find java.util.concurrent.ThreadPoolExecutor.<init>(java/util/concurrent/ThreadPoolExecutor.java to read failed line Java::JavaLang::IllegalArgumentException: # java.util.concurrent.ThreadPoolExecutor.<init>(java/util/concurrent/ThreadPoolExecutor.java:1314) # java.lang.reflect.Constructor.newInstance(java/lang/reflect/Constructor.java:423) # com.concurrent_ruby.ext.SynchronizationLibrary$JRubyLockableObject.rubySynchronize(com/concurrent_ruby/ext/SynchronizationLibrary.java:232) # com.concurrent_ruby.ext.SynchronizationLibrary$JRubyLockableObject$INVOKER$i$0$0$rubySynchronize.call(com/concurrent_ruby/ext/SynchronizationLibrary$JRubyLockableObject$INVOKER$i$0$0$rubySynchronize.gen) # RUBY.executor(/app/spec/mongoid/contextual/mongo/documents_loader_spec.rb:34) # RUBY.subject(/app/spec/mongoid/contextual/mongo/documents_loader_spec.rb:27) # RUBY.<main>(/app/spec/mongoid/contextual/mongo/documents_loader_spec.rb:42) # app.spec.lite_spec_helper.invokeOther0:run(app/spec//app/spec/lite_spec_helper.rb:74) # app.spec.lite_spec_helper.<main>(/app/spec/lite_spec_helper.rb:74) # app.spec.lite_spec_helper.invokeOther1:timeout(app/spec//app/spec/lite_spec_helper.rb:73) # app.spec.lite_spec_helper.<main>(/app/spec/lite_spec_helper.rb:73) # java.lang.invoke.MethodHandle.invokeWithArguments(java/lang/invoke/MethodHandle.java:627)