Cannot call protected constructors from an abstract base class
--------------------------------------------------------------

                 Key: JRUBY-1190
                 URL: http://jira.codehaus.org/browse/JRUBY-1190
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
            Reporter: Tiago Brazão


[code]
package utils;

public abstract class JavaClass {
    
             protected JavaClass() {};

 }
[/code]

The class constructor is "protected" (as usual in java abstract
definitions). If we try to extend this in jruby...

[code]
require 'java'

include_class "utils.JavaClass"

class Example < JavaClass
end

Example.new => ../builtin/javasupport/utilities/base.rb:22:in `__jcreate!': 
wrong # of arguments for constructor


[/code]

-- 
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

Reply via email to