Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -16,6 +16,8 @@
import org.jruby.runtime.Helpers;
import org.jruby.truffle.runtime.LexicalScope;

import java.util.Arrays;

/**
* {@link InternalMethod} objects are copied as properties such as visibility are changed. {@link SharedMethodInfo} stores
* the state that does not change, such as where the method was defined.
@@ -65,7 +67,7 @@ public boolean isBlock() {
}

public ArgumentDescriptor[] getArgumentDescriptors() {
return argumentDescriptors;
return Arrays.copyOf(argumentDescriptors, argumentDescriptors.length);
}

public boolean shouldAlwaysClone() {

0 comments on commit 93224fc

Please sign in to comment.