{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3018","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3018/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3018/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3018/events","html_url":"https://github.com/jruby/jruby/issues/3018","id":85203939,"number":3018,"title":"LoadError with 'compiled' ruby files with JRuby9000","user":{"login":"MSNexploder","id":101456,"avatar_url":"https://avatars.githubusercontent.com/u/101456?v=3","gravatar_id":"","url":"https://api.github.com/users/MSNexploder","html_url":"https://github.com/MSNexploder","followers_url":"https://api.github.com/users/MSNexploder/followers","following_url":"https://api.github.com/users/MSNexploder/following{/other_user}","gists_url":"https://api.github.com/users/MSNexploder/gists{/gist_id}","starred_url":"https://api.github.com/users/MSNexploder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSNexploder/subscriptions","organizations_url":"https://api.github.com/users/MSNexploder/orgs","repos_url":"https://api.github.com/users/MSNexploder/repos","events_url":"https://api.github.com/users/MSNexploder/events{/privacy}","received_events_url":"https://api.github.com/users/MSNexploder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/ir","name":"ir","color":"fbca04"},{"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/packaging","name":"packaging","color":"5319e7"}],"state":"closed","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":13,"closed_issues":33,"state":"open","created_at":"2015-06-10T20:46:24Z","updated_at":"2015-07-06T19:57:47Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-06-04T17:49:08Z","updated_at":"2015-07-06T20:13:25Z","closed_at":"2015-07-06T18:44:35Z","body":"Compiling any Ruby code into a class file and trying to load it afterwards leads to \"LoadError: use `java_import' to load normal Java classes\".\r\n\r\ntest.rb\r\n```\r\nputs 'hello world'\r\n```\r\n\r\ncompiled and run with\r\n\r\n```\r\njrubyc test.rb\r\nruby -e \"load 'test.class'\"\r\n```\r\n\r\nleads to\r\n\r\n```\r\nLoadError: use `java_import' to load normal Java classes: test\r\n   load at org/jruby/RubyKernel.java:958\r\n  <top> at -e:1\r\n```\r\n\r\nHappens in both 9.0.0.0.pre2 and current master (393e64f).\r\n\r\nThis essentially breaks warblers 'compiled' feature - which uses shims in order to transparently load the generated class files (https://github.com/jruby/warbler/issues/325).\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/118981644","html_url":"https://github.com/jruby/jruby/issues/3018#issuecomment-118981644","issue_url":"https://api.github.com/repos/jruby/jruby/issues/3018","id":118981644,"user":{"login":"kares","id":45967,"avatar_url":"https://avatars.githubusercontent.com/u/45967?v=3","gravatar_id":"","url":"https://api.github.com/users/kares","html_url":"https://github.com/kares","followers_url":"https://api.github.com/users/kares/followers","following_url":"https://api.github.com/users/kares/following{/other_user}","gists_url":"https://api.github.com/users/kares/gists{/gist_id}","starred_url":"https://api.github.com/users/kares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kares/subscriptions","organizations_url":"https://api.github.com/users/kares/orgs","repos_url":"https://api.github.com/users/kares/repos","events_url":"https://api.github.com/users/kares/events{/privacy}","received_events_url":"https://api.github.com/users/kares/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T20:13:25Z","updated_at":"2015-07-06T20:13:25Z","body":"JRuby-Rack should be fine ... but Warbler might be affected by the *.class* loading change // cc @jkutner "}}