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

JRuby compatibility #85

Merged
merged 1 commit into from
Jul 27, 2012
Merged

JRuby compatibility #85

merged 1 commit into from
Jul 27, 2012

Conversation

derrickreimer
Copy link
Contributor

When I attempt to run in JRuby, the follow error occurs:

RuntimeError: ObjectSpace is disabled; each_object will only work with Class, pass -X+O to enable each_object at org/jruby/RubyObjectSpace.java:167

By default, ObjectSpace.each_object is disabled in JRuby for performance reasons. However, ObjectSpace.each_object(Class) still works without enabling on the whole enchilada. I made this change and all the specs pass on MRI and JRuby, except for the integration tests (I'm having trouble getting the integration tests to pass on my machine even without the patch). Perhaps someone could verify that those pass as well.

By default, ObjectSpace.each_object is disabled in JRuby. However,
ObjectSpace.each_object(Class) still works.
@derrickreimer
Copy link
Contributor Author

Sounds good, thanks!

@alexch
Copy link
Collaborator

alexch commented Jul 27, 2012

Confirmed to work fine in MRI 1.9.3.

alexch added a commit that referenced this pull request Jul 27, 2012
JRuby ObjectSpace compatibility fix
@alexch alexch merged commit 75e4bfa into ctran:master Jul 27, 2012
lime pushed a commit to lime/annotate_models that referenced this pull request Nov 5, 2013
@ctran ctran added the released label Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants