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

private method error in jruby-9.0.0.0.rc1 #3123

Closed
egadstar opened this issue Jul 9, 2015 · 2 comments
Closed

private method error in jruby-9.0.0.0.rc1 #3123

egadstar opened this issue Jul 9, 2015 · 2 comments

Comments

@egadstar
Copy link

@egadstar egadstar commented Jul 9, 2015

In my application, I'm using the active_interaction gem and the following works in MRI 2.2.2, JRuby 1.7.20, JRuby 9.pre1: https://gist.github.com/egadstar/6b33d76d8b3fc44733dc

In 9K.pre2 and 9K.rc1, I get the following when running the gist:

NoMethodError: private method foobar=' called for #<Bar::Foo:0x2488b073> from org/jruby/RubyKernel.java:1821:inpublic_send'
from /Users/egadstar/.rvm/gems/jruby-9.0.0.0.rc1/gems/active_interaction-2.0.1/lib/active_interaction/base.rb:225:in block in populate_filters' from org/jruby/RubyHash.java:1342:ineach'
from /Users/egadstar/.rvm/gems/jruby-9.0.0.0.rc1/gems/active_interaction-2.0.1/lib/active_interaction/base.rb:223:in populate_filters' from /Users/egadstar/.rvm/gems/jruby-9.0.0.0.rc1/gems/active_interaction-2.0.1/lib/active_interaction/base.rb:215:inprocess_inputs'
from /Users/egadstar/.rvm/gems/jruby-9.0.0.0.rc1/gems/active_interaction-2.0.1/lib/active_interaction/base.rb:166:in initialize' from /Users/egadstar/.rvm/gems/jruby-9.0.0.0.rc1/gems/active_interaction-2.0.1/lib/active_interaction/concerns/runnable.rb:108:innew'
from /Users/egadstar/.rvm/gems/jruby-9.0.0.0.rc1/gems/active_interaction-2.0.1/lib/active_interaction/concerns/runnable.rb:122:in run' from (irb):2:in'
from org/jruby/RubyKernel.java:979:in eval' from org/jruby/RubyKernel.java:1292:inloop'
from org/jruby/RubyKernel.java:1099:in catch' from org/jruby/RubyKernel.java:1099:incatch'

@headius
Copy link
Member

@headius headius commented Jul 9, 2015

The visibility for the initialize_filter method in active_interaction seems to be setting things up with private visibility. Investigating.

@headius headius closed this in 8ae5cb3 Jul 9, 2015
@headius
Copy link
Member

@headius headius commented Jul 9, 2015

I believe we already have a test for this, but we'll need to get the MixedModeIRMethod involved in those tests.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.