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

java_send on private subclass fails #769

byteit101 opened this issue May 25, 2013 · 1 comment

java_send on private subclass fails #769

byteit101 opened this issue May 25, 2013 · 1 comment


Copy link

Original bug: jruby/jrubyfx#39

#<TypeError: illegal access on 'addListener': Class org.jruby.javasupport.JavaMethod can not access a member of class$ReadOnlyPropertyImpl with modifiers "public">
org/jruby/java/proxies/ `java_send'

the JRubyFX code calls ro_property_impl_object.java_send :addListener, [ChangeListener], block
replacing that with ro_property_impl_object.addListener block works as expected but warns about it picking one (as expected as there is addListener(ChangeListener) and addListener(invalidationListener))

I have discovered that ReadOnlyPropertyImpl is private and this seems to be the problem

Test cases in original bug. Also manifests itself in Netbeans JRuby 1.7.3 built-in sometimes. not sure how thats related

Copy link

kares commented Apr 29, 2015

added specs with java_send against a package / private class 48c3e58 ... all seems well (on 1.7.20)

@kares kares closed this as completed Apr 29, 2015
@headius headius added this to the JRuby 1.7.20 milestone May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants