From 3702b310d774ae73cb73a7cc2daa1aa4488204fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Miel=C5=BCy=C5=84ski?= Date: Fri, 9 May 2008 17:48:18 +0000 Subject: [PATCH] Fix for JRUBY-2501: Enumerable module's member? method doesn't call overridden == method. (1.0 backported). git-svn-id: http://svn.codehaus.org/jruby/branches/jruby-1_0@6655 961051c9-f516-0410-bf72-c9f7e237a7b7 --- src/org/jruby/RubyEnumerable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jruby/RubyEnumerable.java b/src/org/jruby/RubyEnumerable.java index 329129cd0b5..7faceb75159 100644 --- a/src/org/jruby/RubyEnumerable.java +++ b/src/org/jruby/RubyEnumerable.java @@ -364,7 +364,7 @@ public static IRubyObject include_p(IRubyObject self, final IRubyObject arg) { callEach(runtime, context, self, new BlockCallback() { public IRubyObject call(ThreadContext ctx, IRubyObject[] largs, Block blk) { IRubyObject larg = largs.length > 1 ? runtime.newArrayNoCopy(largs) : largs[0]; - if (arg.equalInternal(context, larg).isTrue()) { + if (larg.equalInternal(context, arg).isTrue()) { throw new JumpException(JumpException.JumpType.SpecialJump); }