Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

become_java classes are not in general part of Thread.current_thread.getContextClassLoader #2277

Open
mkristian opened this issue Dec 5, 2014 · 0 comments

Comments

@mkristian
Copy link
Member

this tests
https://github.com/jruby/jruby/blob/master/spec/java_integration/reify/become_java_spec.rb#L111
fails unless it is run via org.jruby.Main where the Thread.current_thread.getContextClassLoader is set to runtime.getJRubyClassLoader.

the very same code will fail on servlet engines or whenever jruby has nothing to do with Thread.current_thread.getContextClassLoader like OSGi containers.

not sure about features which ONLY works via org.jruby.Main is the right thing to do.

related to: #2025

@nirvdrum nirvdrum changed the title become_java classses are not in general part of Thread.current_thread.getContextClassLoader become_java classes are not in general part of Thread.current_thread.getContextClassLoader Dec 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants