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

Closed
byteit101 opened this issue May 25, 2013 · 1 comment
Closed

java_send on private subclass fails #769

byteit101 opened this issue May 25, 2013 · 1 comment

Comments

@byteit101
Copy link
Member

@byteit101 byteit101 commented May 25, 2013

Original bug: jruby/jrubyfx#39

#<TypeError: illegal access on 'addListener': Class org.jruby.javasupport.JavaMethod can not access a member of class javafx.beans.property.ReadOnlyListWrapper$ReadOnlyPropertyImpl with modifiers "public">
org/jruby/java/proxies/JavaProxy.java:347:in `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

@kares
Copy link
Member

@kares 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 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants