{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2982","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2982/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2982/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2982/events","html_url":"https://github.com/jruby/jruby/issues/2982","id":80315967,"number":2982,"title":"Use of newer Java methods fail on Android","user":{"login":"donv","id":57275,"avatar_url":"https://avatars.githubusercontent.com/u/57275?v=3","gravatar_id":"","url":"https://api.github.com/users/donv","html_url":"https://github.com/donv","followers_url":"https://api.github.com/users/donv/followers","following_url":"https://api.github.com/users/donv/following{/other_user}","gists_url":"https://api.github.com/users/donv/gists{/gist_id}","starred_url":"https://api.github.com/users/donv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donv/subscriptions","organizations_url":"https://api.github.com/users/donv/orgs","repos_url":"https://api.github.com/users/donv/repos","events_url":"https://api.github.com/users/donv/events{/privacy}","received_events_url":"https://api.github.com/users/donv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%209000","name":"JRuby 9000","color":"bfe5bf"},{"url":"https://api.github.com/repos/jruby/jruby/labels/Ruboto","name":"Ruboto","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/37","html_url":"https://github.com/jruby/jruby/milestones/JRuby%209.0.0.0.rc2","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/37/labels","id":1159253,"number":37,"title":"JRuby 9.0.0.0.rc2","description":"","creator":{"login":"enebo","id":19819,"avatar_url":"https://avatars.githubusercontent.com/u/19819?v=3","gravatar_id":"","url":"https://api.github.com/users/enebo","html_url":"https://github.com/enebo","followers_url":"https://api.github.com/users/enebo/followers","following_url":"https://api.github.com/users/enebo/following{/other_user}","gists_url":"https://api.github.com/users/enebo/gists{/gist_id}","starred_url":"https://api.github.com/users/enebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enebo/subscriptions","organizations_url":"https://api.github.com/users/enebo/orgs","repos_url":"https://api.github.com/users/enebo/repos","events_url":"https://api.github.com/users/enebo/events{/privacy}","received_events_url":"https://api.github.com/users/enebo/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":35,"state":"open","created_at":"2015-06-10T20:46:24Z","updated_at":"2015-07-07T00:44:30Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-05-25T00:17:16Z","updated_at":"2015-07-07T13:57:53Z","closed_at":null,"body":"Hi!\r\n\r\nI have made a branch for not loading the IR compiler when setting compile mode OFF (or truffle).\r\n\r\nhttps://github.com/jruby/jruby/tree/test-optional_compiler\r\n\r\nIt seems to do the job, but when running JRuby 9000 master on Android (Ruboto), I get an error in Kernel#puts:\r\n\r\nhttps://gist.github.com/donv/9896b7c3890d34726efa\r\n\r\nThe source for the failing line is here:\r\n\r\nhttps://github.com/android/platform_frameworks_base/blob/master/core/java/com/android/internal/os/LoggingPrintStream.java#L64\r\n\r\nI have not found exactly how it fails, but my guess is that LoggingPrintStream implements all known methods for PrintStream for Java 6, but JRuby 9K uses a method for Java 7 or later that then falls through to OutputStream#write which throws an AssertionError.\r\n\r\nMy guess it is \r\n\r\norg.jruby.util.io.PosixShim.write(PosixShim.java:92)\r\n\r\nI guess JRuby can be made to have different behaviour under Android...\r\n\r\nAny help with this is appreciated.\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/119209880","html_url":"https://github.com/jruby/jruby/issues/2982#issuecomment-119209880","issue_url":"https://api.github.com/repos/jruby/jruby/issues/2982","id":119209880,"user":{"login":"nirvdrum","id":12584,"avatar_url":"https://avatars.githubusercontent.com/u/12584?v=3","gravatar_id":"","url":"https://api.github.com/users/nirvdrum","html_url":"https://github.com/nirvdrum","followers_url":"https://api.github.com/users/nirvdrum/followers","following_url":"https://api.github.com/users/nirvdrum/following{/other_user}","gists_url":"https://api.github.com/users/nirvdrum/gists{/gist_id}","starred_url":"https://api.github.com/users/nirvdrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirvdrum/subscriptions","organizations_url":"https://api.github.com/users/nirvdrum/orgs","repos_url":"https://api.github.com/users/nirvdrum/repos","events_url":"https://api.github.com/users/nirvdrum/events{/privacy}","received_events_url":"https://api.github.com/users/nirvdrum/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T13:57:53Z","updated_at":"2015-07-07T13:57:53Z","body":"@donv FYI, the link you supplied was to ruboto master and the JRubyAdapter.java file changed since then.  Line 310 is currently a blank line.  You may want to update the link to a known revision."}}