-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
TypeError: bind argument must be an instance of #<Module:0x483af9f5> #2519
Comments
It seems to be triggered by this code in my application: https://github.com/projecthydra/active_fedora/blob/master/lib/active_fedora/attribute_methods.rb#L117 |
the owner of the method you're trying to bind is likely not in the target's hierarchy ... you should verify that the same piece of code works on MRI before assuming this to be a JRuby bug, in which case a simple piece of script code reproducing the behaviour might be handy. |
I've just run into this issue as well. Looking around a bit I found a brief gist by @jamesotron https://gist.github.com/jamesotron/10336130 that is a minimal example for producing the error. I'm going to check that this example is a model for what the active fedora code is doing as well. The rails project in which I encountered this runs on mri 2.2 and does not encounter this error. |
1.7 is not "that" 2.x compatible ... "transplantable" methods are a feature in 2.x which JRuby does not (yet) support and if it will it might land on 9K only - since 1.7 is primarily MRI 1.9.3 compatible ... this should be reported with the gems that they do not support 1.9.3 (e.g. active_fedora declares Ruby >= 1.9.3) ... Rails does a similar work-around for generated methods on "older" Rubies. |
Using:
jruby 1.7.18 (1.9.3p551) 2015-01-06 625381c on Java HotSpot(TM) 64-Bit Server VM 1.7.0_72-b14 +jit [linux-amd64]
The text was updated successfully, but these errors were encountered: