ScriptingContainer#runScriptlet returns Java parent class of Ruby class
returned from Ruby script parameter
-----------------------------------------------------------------------------------------------------------
Key: JRUBY-4147
URL: http://jira.codehaus.org/browse/JRUBY-4147
Project: JRuby
Issue Type: Bug
Components: Embedding
Affects Versions: JRuby 1.4.0RC2
Environment: Operating System: Darwin, Mac OS X 10.6.1
ruby 1.8.7 [universal-darwin10.0]
jruby 1.4.0RC2
Java, JDK 1.6.0
Java version 1.6.0_15, SE Runtime Environment 1.6.0_15-b03-219
Reporter: Nels Nelson
Fix For: JRuby 1.4.0RC2
Attachments: Bar.java
http://gist.github.com/216213
There seems to be an issue with the ScriptingContainer#runScriptlet method
returning the Java parent class of a ruby class returned from the ruby script
parameter to runScriptlet.
package x; import org.jruby.embed.ScriptingContainer; public class Bar {
public static void main(String[] args) {
System.out.println(new ScriptingContainer().
runScriptlet("class Foo < Java::x.Bar; end; Foo")); // => class
x.Bar
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email