{"action":"created","issue":{"url":"https://api.github.com/repos/subchen/jetbrick-template-2x/issues/41","repository_url":"https://api.github.com/repos/subchen/jetbrick-template-2x","labels_url":"https://api.github.com/repos/subchen/jetbrick-template-2x/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/subchen/jetbrick-template-2x/issues/41/comments","events_url":"https://api.github.com/repos/subchen/jetbrick-template-2x/issues/41/events","html_url":"https://github.com/subchen/jetbrick-template-2x/issues/41","id":378156137,"node_id":"MDU6SXNzdWUzNzgxNTYxMzc=","number":41,"title":"2x 版本 Java11 运行错误","user":{"login":"amsz","id":113710,"node_id":"MDQ6VXNlcjExMzcxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/113710?v=4","gravatar_id":"","url":"https://api.github.com/users/amsz","html_url":"https://github.com/amsz","followers_url":"https://api.github.com/users/amsz/followers","following_url":"https://api.github.com/users/amsz/following{/other_user}","gists_url":"https://api.github.com/users/amsz/gists{/gist_id}","starred_url":"https://api.github.com/users/amsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amsz/subscriptions","organizations_url":"https://api.github.com/users/amsz/orgs","repos_url":"https://api.github.com/users/amsz/repos","events_url":"https://api.github.com/users/amsz/events{/privacy}","received_events_url":"https://api.github.com/users/amsz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-07T06:16:25Z","updated_at":"2018-11-07T06:30:52Z","closed_at":null,"author_association":"NONE","body":"AstText 中通过反射获取String.value时，报类型转存错误\r\n\r\n```java\r\n# String.java\r\nprivate final byte[] value;\r\n\r\n# AstText.java\r\n(char[]) FIELD_STRING_VALUE.get(text);\r\n```\r\n\r\n几个疑问：\r\n\r\n* 这边是否直接调用 `String.toCharArray()` 方法即可？这样就没有java版本的问题\r\n* 使用反射的是基于什么来考虑的？ "},"comment":{"url":"https://api.github.com/repos/subchen/jetbrick-template-2x/issues/comments/436518695","html_url":"https://github.com/subchen/jetbrick-template-2x/issues/41#issuecomment-436518695","issue_url":"https://api.github.com/repos/subchen/jetbrick-template-2x/issues/41","id":436518695,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjUxODY5NQ==","user":{"login":"subchen","id":2189657,"node_id":"MDQ6VXNlcjIxODk2NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/2189657?v=4","gravatar_id":"","url":"https://api.github.com/users/subchen","html_url":"https://github.com/subchen","followers_url":"https://api.github.com/users/subchen/followers","following_url":"https://api.github.com/users/subchen/following{/other_user}","gists_url":"https://api.github.com/users/subchen/gists{/gist_id}","starred_url":"https://api.github.com/users/subchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subchen/subscriptions","organizations_url":"https://api.github.com/users/subchen/orgs","repos_url":"https://api.github.com/users/subchen/repos","events_url":"https://api.github.com/users/subchen/events{/privacy}","received_events_url":"https://api.github.com/users/subchen/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T06:30:52Z","updated_at":"2018-11-07T06:30:52Z","author_association":"OWNER","body":"`String.toCharArray()` 会产生一次内存copy，用反射可以减少这次copy.\r\n\r\nJava11可能修改了 String.class 的实现，这个需要Fix一下\r\n"}}
{"actor":{"display_login":"subchen"}}