John Landahl created JRUBY-6342: ----------------------------------- Summary: Ruby class inheritance not supported by jrubyc --java Key: JRUBY-6342 URL: https://jira.codehaus.org/browse/JRUBY-6342 Project: JRuby Issue Type: Bug Components: Compiler Affects Versions: JRuby 1.6.5 Reporter: John Landahl
The Java code generated by {{jrubyc --java}} does not appear to support Ruby class inheritance. Given the following simple example: {code} class A def my_class; self.class.name end end class B < A end {code} The generated class in {{B.java}} inherits from {{RubyObject}} rather than {{A}}, rendering the {{B}} class completely broken in Java. On a somewhat related note, module inclusion doesn't seem to work either. A class with {{include M}} doesn't get {{M}}'s methods in the generated Java code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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