Skip to content

Commit

Permalink
Fix for JRUBY-2501: Enumerable module's member? method doesn't call o…
Browse files Browse the repository at this point in the history
…verridden == method. (1.0 backported).

git-svn-id: http://svn.codehaus.org/jruby/branches/jruby-1_0@6655 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
lopex committed May 9, 2008
1 parent a2a6923 commit 3702b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jruby/RubyEnumerable.java
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3702b31

Please sign in to comment.