Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre1
Assignee: Unassigned
Components: Embedding
Created: 27/Jul/12 4:15 PM
Description:

This is not from a real-world case. I just came across it during my exploration of the embedding API.

Given the following class I would expect to be able to call string_method on any Java string.

import org.jruby.embed.ScriptingContainer;

class ReopenStringClass {
    public static void main(String[] args) {
        ScriptingContainer sc = new ScriptingContainer();
        sc.runScriptlet("class Java::JavaLang::String\ndef string_method\nputs 'string method'\nend\nend");
        sc.runRubyMethod(null, "A String", "string_method");
    }
}
Fix Versions: JRuby 1.7.0.pre2
Project: JRuby
Priority: Major Major
Reporter: Uwe Kubosch
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to