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

Overloading Java Interfaces with modules in JRuby throws exception #24

Closed
bb opened this issue Jul 18, 2009 · 2 comments
Closed

Overloading Java Interfaces with modules in JRuby throws exception #24

bb opened this issue Jul 18, 2009 · 2 comments

Comments

@bb
Copy link
Contributor

bb commented Jul 18, 2009

similar to documenting ruby classes which overload java classes, see #23, overloading modules doesn't work. Instead of warning, it throws an exception:

    29:  module org::example::SomeInterface
    30:  end

It would be really great if this worked as the project I'm trying to migrate to YARD throws thousands of lines of error code at the moment.

The error message for reference:
Unhandled exception in YARD::Handlers::Ruby::Legacy::ModuleHandler:
NoMethodError: undefined method to_sym' for nil:NilClass inoverriding_java.rb`:29:

[error]: Stack trace:
/Library/Ruby/Gems/1.8/gems/yard-0.2.3.2/bin/../lib/yard/code_objects/base.rb:95:in initialize' /Library/Ruby/Gems/1.8/gems/yard-0.2.3.2/bin/../lib/yard/code_objects/namespace_object.rb:12:ininitialize'
/Library/Ruby/Gems/1.8/gems/yard-0.2.3.2/bin/../lib/yard/code_objects/base.rb:78:in new' /Library/Ruby/Gems/1.8/gems/yard-0.2.3.2/bin/../lib/yard/code_objects/base.rb:78:innew'
/Library/Ruby/Gems/1.8/gems/yard-0.2.3.2/bin/../lib/yard/handlers/ruby/legacy/module_handler.rb:6:in process' /Library/Ruby/Gems/1.8/gems/yard-0.2.3.2/bin/../lib/yard/handlers/processor.rb:23:inprocess'

@bb
Copy link
Contributor Author

bb commented Jul 18, 2009

I'm not that familiar with Markdown, sorry for the broken formatting :(

Github needs a preview button.

@bb
Copy link
Contributor Author

bb commented Mar 11, 2010

It looks like JRuby settled with Java::OrgExample::SomeInterface which works fine in YARD. Consequently, this can be closed.

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

No branches or pull requests

1 participant