Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.5.6, JRuby 1.6.2
-
Fix Version/s: JRuby 1.6.3
-
Component/s: Embedding
-
Labels:None
-
Environment:OS X, JDK 1.6.0_24
-
Number of attachments :
Description
Hi!
In setting up Ruboto using JRuby, I came across this situation:
import org.jruby.embed.ScriptingContainer;
class JRUBY_XXXX {
private static ScriptingContainer ruby;
public static final void main(String[] args) {
ruby = new ScriptingContainer();
// This line changes the result
// ruby.put("a_variable", "some value");
ruby.setCurrentDirectory("/Users/uwe");
ruby.runScriptlet("p Dir.getwd");
}
}
When running the example above you get
"/Users/uwe"
If you uncomment line 10, you get your initial working directory. The call to "setCurrentDirectory" is ignored after the call to "put".
Am I missing something?
This is currently stalling a release of Ruboto, so I put a "Blocker" on this issue until we at least find a workaround.
Please tell me if this is wrong usage of the Blocker level, or if I should consider the priority of issues I report at all.
Thanks for reporting this. This is regression caused by recent change on singleton model. I fixed this bug in rev. aa1efed on master and rev. 9bf14fa on jruby-1_6 branch.
As far as I tested using a given code, the bug was fixed.