Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bigsur0 opened this issue Jan 15, 2014 · 3 comments · Fixed by #3807

Comments

@bigsur0
Copy link
Contributor

bigsur0 commented Jan 15, 2014

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?

kares added a commit that referenced this issue Apr 18, 2016
@kares kares added this to the JRuby 9.1.0.0 milestone Apr 18, 2016
kares added a commit that referenced this issue Apr 19, 2016
@kares kares removed this from the JRuby 9.1.0.0 milestone Apr 21, 2016
@kares kares added this to the JRuby 9.2.0.0 milestone Jan 20, 2017
@enebo
Copy link
Member

enebo commented Feb 17, 2017

@kares this is fixed now isn't it?

@kares
Copy link
Member

kares commented Feb 18, 2017

@enebo not in any release out there. it needs a "scary" change thus open for re-consideration (9.2) #3807

@headius
Copy link
Member

headius commented May 16, 2018

I am in favor of merging #3807.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants