{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3397","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3397/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3397/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3397/events","html_url":"https://github.com/jruby/jruby/issues/3397","id":111671424,"number":3397,"title":"ArrayIndexOutOfBoundsException when utf8 string matched against regexp with with word boundary \\b","user":{"login":"kml","id":19998,"avatar_url":"https://avatars.githubusercontent.com/u/19998?v=3","gravatar_id":"","url":"https://api.github.com/users/kml","html_url":"https://github.com/kml","followers_url":"https://api.github.com/users/kml/followers","following_url":"https://api.github.com/users/kml/following{/other_user}","gists_url":"https://api.github.com/users/kml/gists{/gist_id}","starred_url":"https://api.github.com/users/kml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kml/subscriptions","organizations_url":"https://api.github.com/users/kml/orgs","repos_url":"https://api.github.com/users/kml/repos","events_url":"https://api.github.com/users/kml/events{/privacy}","received_events_url":"https://api.github.com/users/kml/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/43","html_url":"https://github.com/jruby/jruby/milestones/JRuby%209.0.3.0","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/43/labels","id":1286911,"number":43,"title":"JRuby 9.0.3.0","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":0,"closed_issues":1,"state":"closed","created_at":"2015-09-02T18:06:24Z","updated_at":"2015-10-21T19:14:52Z","due_on":null,"closed_at":"2015-10-21T19:14:52Z"},"comments":4,"created_at":"2015-10-15T17:51:04Z","updated_at":"2016-01-13T17:18:08Z","closed_at":"2015-10-15T18:29:46Z","body":"```ruby\r\n> p = \"x\".force_encoding(\"utf-8\"); p.match(/x.*\\b/)\r\nJava::JavaLang::ArrayIndexOutOfBoundsException: 1\r\n\tfrom org.jcodings.specific.UTF8Encoding.length(UTF8Encoding.java:35)\r\n\tfrom org.jcodings.specific.BaseUTF8Encoding.mbcToCode(BaseUTF8Encoding.java:91)\r\n\tfrom org.jcodings.specific.UTF8Encoding.mbcToCode(UTF8Encoding.java:24)\r\n\tfrom org.jcodings.Encoding.isMbcWord(Encoding.java:469)\r\n\tfrom org.joni.ByteCodeMachine.opWordBound(ByteCodeMachine.java:1054)\r\n\tfrom org.joni.ByteCodeMachine.matchAt(ByteCodeMachine.java:239)\r\n\tfrom org.joni.Matcher.matchCheck(Matcher.java:304)\r\n```\r\n\r\n```ruby\r\n?> p = \"x\".bytes.to_a.pack('c*').force_encoding(\"utf-8\"); p.match(/x.*\\b/)\r\n=> nil\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/171368984","html_url":"https://github.com/jruby/jruby/issues/3397#issuecomment-171368984","issue_url":"https://api.github.com/repos/jruby/jruby/issues/3397","id":171368984,"user":{"login":"Xanthus","id":490637,"avatar_url":"https://avatars.githubusercontent.com/u/490637?v=3","gravatar_id":"","url":"https://api.github.com/users/Xanthus","html_url":"https://github.com/Xanthus","followers_url":"https://api.github.com/users/Xanthus/followers","following_url":"https://api.github.com/users/Xanthus/following{/other_user}","gists_url":"https://api.github.com/users/Xanthus/gists{/gist_id}","starred_url":"https://api.github.com/users/Xanthus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xanthus/subscriptions","organizations_url":"https://api.github.com/users/Xanthus/orgs","repos_url":"https://api.github.com/users/Xanthus/repos","events_url":"https://api.github.com/users/Xanthus/events{/privacy}","received_events_url":"https://api.github.com/users/Xanthus/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T17:18:08Z","updated_at":"2016-01-13T17:18:08Z","body":"Is this going to make it into the next 1.7 release? "}}