MongoMapper's usage of defined? is handled incorrectly
------------------------------------------------------
Key: JRUBY-5391
URL: http://jira.codehaus.org/browse/JRUBY-5391
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6RC1
Environment: Mac OSX 10.6.6, JRuby 1.6.0.RC1, MongoDB 1.6.2,
MongoMapper rails3 branch located at
https://github.com/jnunemaker/mongomapper/tree/rails3
Reporter: Srdjan Pejic
Assignee: Thomas E Enebo
Priority: Minor
The way JRuby's interpreter (?) handles defined?(super) causes MongoMapper to
call the wrong save_to_collection method inside its plugin architecture.
Reproduction case sourced from headius on #jruby:
jruby -X-C -e "module M1; def foo; end; end; module M2; def foo; puts
defined?(super); end; end; class C1; include M1; include M2; end; C1.new.foo"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email