Skip to content

Commit

Permalink
Small fix to add missing argument to join
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/branches/sandbox@2529 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
olabini committed Dec 2, 2006
1 parent 534e5d6 commit c9d598f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/jruby/RubyThread.java
Expand Up @@ -90,7 +90,7 @@ public static RubyClass createThreadClass(IRuby runtime) {
threadClass.defineMethod("group",
callbackFactory.getMethod("group"));
threadClass.defineMethod("join",
callbackFactory.getMethod("join"));
callbackFactory.getOptMethod("join"));
threadClass.defineMethod("key?",
callbackFactory.getMethod("has_key", IRubyObject.class));
threadClass.defineMethod("priority",
Expand Down Expand Up @@ -383,7 +383,7 @@ public RubyBoolean is_alive() {
return threadImpl.isAlive() ? getRuntime().getTrue() : getRuntime().getFalse();
}

public RubyThread join() {
public RubyThread join(IRubyObject[] args) {
if (isCurrent()) {
throw getRuntime().newThreadError("thread tried to join itself");
}
Expand Down

0 comments on commit c9d598f

Please sign in to comment.