Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for JRUBY-2501: Enumerable module's member? method doesn't call o…

…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...
commit 3702b310d774ae73cb73a7cc2daa1aa4488204fe 1 parent a2a6923
@lopex lopex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/jruby/RubyEnumerable.java
View
2  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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.