{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/4851","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/4851/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/4851/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/4851/events","html_url":"https://github.com/jruby/jruby/issues/4851","id":272901585,"number":4851,"title":"Unable to use protected java method in jruby since jdk9","user":{"login":"monkstone","id":86850,"avatar_url":"https://avatars1.githubusercontent.com/u/86850?v=4","gravatar_id":"","url":"https://api.github.com/users/monkstone","html_url":"https://github.com/monkstone","followers_url":"https://api.github.com/users/monkstone/followers","following_url":"https://api.github.com/users/monkstone/following{/other_user}","gists_url":"https://api.github.com/users/monkstone/gists{/gist_id}","starred_url":"https://api.github.com/users/monkstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monkstone/subscriptions","organizations_url":"https://api.github.com/users/monkstone/orgs","repos_url":"https://api.github.com/users/monkstone/repos","events_url":"https://api.github.com/users/monkstone/events{/privacy}","received_events_url":"https://api.github.com/users/monkstone/received_events","type":"User","site_admin":false},"labels":[{"id":43748173,"url":"https://api.github.com/repos/jruby/jruby/labels/JDK%20compatibility","name":"JDK compatibility","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/53","html_url":"https://github.com/jruby/jruby/milestone/53","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/53/labels","id":1772709,"number":53,"title":"JRuby 9.2.0.0","description":"","creator":{"login":"headius","id":10135,"avatar_url":"https://avatars3.githubusercontent.com/u/10135?v=4","gravatar_id":"","url":"https://api.github.com/users/headius","html_url":"https://github.com/headius","followers_url":"https://api.github.com/users/headius/followers","following_url":"https://api.github.com/users/headius/following{/other_user}","gists_url":"https://api.github.com/users/headius/gists{/gist_id}","starred_url":"https://api.github.com/users/headius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headius/subscriptions","organizations_url":"https://api.github.com/users/headius/orgs","repos_url":"https://api.github.com/users/headius/repos","events_url":"https://api.github.com/users/headius/events{/privacy}","received_events_url":"https://api.github.com/users/headius/received_events","type":"User","site_admin":false},"open_issues":123,"closed_issues":137,"state":"open","created_at":"2016-05-17T21:46:32Z","updated_at":"2018-03-30T15:07:20Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2017-11-10T11:23:59Z","updated_at":"2018-04-10T14:50:08Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Unable to use inherited, protected method with jdk9.\r\n\r\n### Environment\r\n\r\nFailing Setup:\r\n* jruby 9.1.14.0 (2.3.3) 2017-11-08 2176f24 Java HotSpot(TM) 64-Bit Server VM 9.0.1+11 on 9.0.1+11 +jit [linux-x86_64]\r\n\r\n* Linux tux-PC-2163 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nPassing Setup\r\n* jruby 9.1.14.0 (2.3.3) 2017-11-08 2176f24 OpenJDK 64-Bit Server VM 25.151-b12 on 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12 +jit [linux-x86_64]\r\n\r\n* Linux tux-PC-2163 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n### Expected Behavior\r\n\r\n* Runs sketch as expected\r\nsee link https://github.com/monkstone/rbprocessing\r\n\r\n### Actual Behavior\r\n\r\n* Fails with `TypeError` message\r\n```pre\r\nWARNING: An illegal reflective access operation has occurred\r\nWARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess to method sun.nio.ch.SelChImpl.getFD()\r\nWARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper$ReflectiveAccess\r\nWARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations\r\nWARNING: All illegal access operations will be denied in a future release\r\nTypeError: illegal access on 'runSketch': class org.jruby.javasupport.JavaMethod cannot access a member of class processing.core.PApplet with modifiers \"protected\"\r\n  initialize at /home/tux/rbprocessing/lib/rbprocessing/app.rb:10\r\n      <main> at test.rb:18\r\n```\r\n### The runSketch method\r\n\r\nThe `runSketch` method is provided by processing.org, primarily for the benefit of `processing.py`, that uses `jython` to create a python wrapper around processing. In `JRubyArt` and `propane` I have created a ruby wrapper around processing using `jruby`. Is there a way I can still access this method with jdk9?\r\n\r\nBehaviour since confirmed with simpler java test case, that is also included in repo.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/380129258","html_url":"https://github.com/jruby/jruby/issues/4851#issuecomment-380129258","issue_url":"https://api.github.com/repos/jruby/jruby/issues/4851","id":380129258,"user":{"login":"headius","id":10135,"avatar_url":"https://avatars3.githubusercontent.com/u/10135?v=4","gravatar_id":"","url":"https://api.github.com/users/headius","html_url":"https://github.com/headius","followers_url":"https://api.github.com/users/headius/followers","following_url":"https://api.github.com/users/headius/following{/other_user}","gists_url":"https://api.github.com/users/headius/gists{/gist_id}","starred_url":"https://api.github.com/users/headius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headius/subscriptions","organizations_url":"https://api.github.com/users/headius/orgs","repos_url":"https://api.github.com/users/headius/repos","events_url":"https://api.github.com/users/headius/events{/privacy}","received_events_url":"https://api.github.com/users/headius/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T14:50:08Z","updated_at":"2018-04-10T14:50:08Z","author_association":"OWNER","body":"Right, I understand that. It's not impossible to support, but with the many levels of method dispatch plumbing it will take some creative use of invokedynamic to do so. I have not had a chance to look at module system changes in Java 10...perhaps they have made it easier to soften these checks?"}}
{"actor":{"display_login":"headius"}}