Skip to content

Commit

Permalink
Specialize update for ARGV to preserve its initial javaType.
Browse files Browse the repository at this point in the history
Final fix to fixes for #4178.
  • Loading branch information
headius committed Sep 28, 2016
1 parent 7c1a674 commit 69402bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/org/jruby/embed/variable/Argv.java
Expand Up @@ -176,6 +176,12 @@ private static void updateARGV(final IRubyObject receiver, final BiVariableMap v
}
}

// ARGV appears to require special treatment, leaving javaType intact
protected void updateRubyObject(final IRubyObject rubyObject) {
if ( rubyObject == null ) return;
this.irubyObject = rubyObject;
}

/**
* Retrieves ARGV by key from Ruby runtime after the evaluation.
* This method is used when eager retrieval is off.
Expand Down

0 comments on commit 69402bc

Please sign in to comment.