Skip to content

Jruby class implementing java interface with "initialize" method as a part of the interface fails to compile with jrubyc #1408

@bigsur0

Description

@bigsur0
class FooInterceptor
 java_implements 'org.apache.flume.interceptor.Interceptor'

 java_signature "void initialize()"
 def init; end

 ...snip...
end

Results in the below error when compiling with jrubyc.

error: initialize() in FooInterceptor cannot override initialize() in RubyObject
    public void initialize() {
                ^
  return type void is not compatible with IRubyObject

Is there a way around this that isn't published?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions