{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/2040","repository_url":"https://api.github.com/repos/alibaba/fastjson","labels_url":"https://api.github.com/repos/alibaba/fastjson/issues/2040/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/fastjson/issues/2040/comments","events_url":"https://api.github.com/repos/alibaba/fastjson/issues/2040/events","html_url":"https://github.com/alibaba/fastjson/issues/2040","id":354983986,"node_id":"MDU6SXNzdWUzNTQ5ODM5ODY=","number":2040,"title":"FastJson 不支持 JacksonJson 的一些注解，枚举解析的设计不同","user":{"login":"Hyzhou","id":5910417,"node_id":"MDQ6VXNlcjU5MTA0MTc=","avatar_url":"https://avatars2.githubusercontent.com/u/5910417?v=4","gravatar_id":"","url":"https://api.github.com/users/Hyzhou","html_url":"https://github.com/Hyzhou","followers_url":"https://api.github.com/users/Hyzhou/followers","following_url":"https://api.github.com/users/Hyzhou/following{/other_user}","gists_url":"https://api.github.com/users/Hyzhou/gists{/gist_id}","starred_url":"https://api.github.com/users/Hyzhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hyzhou/subscriptions","organizations_url":"https://api.github.com/users/Hyzhou/orgs","repos_url":"https://api.github.com/users/Hyzhou/repos","events_url":"https://api.github.com/users/Hyzhou/events{/privacy}","received_events_url":"https://api.github.com/users/Hyzhou/received_events","type":"User","site_admin":false},"labels":[{"id":374072430,"node_id":"MDU6TGFiZWwzNzQwNzI0MzA=","url":"https://api.github.com/repos/alibaba/fastjson/labels/bug","name":"bug","color":"b60205","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/alibaba/fastjson/milestones/61","html_url":"https://github.com/alibaba/fastjson/milestone/61","labels_url":"https://api.github.com/repos/alibaba/fastjson/milestones/61/labels","id":3581002,"node_id":"MDk6TWlsZXN0b25lMzU4MTAwMg==","number":61,"title":"1.2.51","description":"","creator":{"login":"wenshao","id":1166785,"node_id":"MDQ6VXNlcjExNjY3ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/1166785?v=4","gravatar_id":"","url":"https://api.github.com/users/wenshao","html_url":"https://github.com/wenshao","followers_url":"https://api.github.com/users/wenshao/followers","following_url":"https://api.github.com/users/wenshao/following{/other_user}","gists_url":"https://api.github.com/users/wenshao/gists{/gist_id}","starred_url":"https://api.github.com/users/wenshao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenshao/subscriptions","organizations_url":"https://api.github.com/users/wenshao/orgs","repos_url":"https://api.github.com/users/wenshao/repos","events_url":"https://api.github.com/users/wenshao/events{/privacy}","received_events_url":"https://api.github.com/users/wenshao/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":0,"state":"open","created_at":"2018-08-19T05:16:30Z","updated_at":"2018-09-14T09:24:01Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-08-29T03:42:31Z","updated_at":"2018-10-22T12:20:27Z","closed_at":null,"author_association":"NONE","body":"`\r\nception in thread \"main\" javax.ws.rs.WebApplicationException: JSON parse error: parse enum org.gitlab4j.api.models.AccessLevel error, value : 30\r\n  at com.alibaba.securitysdk.fastjson.support.jaxrs.FastJsonProvider.readFrom(FastJsonProvider.java:373)\r\n  at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:257)\r\n  at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:236)\r\n  at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:156)\r\n  at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1091)\r\n  at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:874)\r\n  at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:834)\r\n  at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:363)\r\n  at org.glassfish.jersey.client.InboundJaxrsResponse$2.call(InboundJaxrsResponse.java:126)\r\n  at org.glassfish.jersey.internal.Errors.process(Errors.java:316)\r\n  at org.glassfish.jersey.internal.Errors.process(Errors.java:298)\r\n  at org.glassfish.jersey.internal.Errors.process(Errors.java:229)\r\n  at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:389)\r\n  at org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible(InboundJaxrsResponse.java:264)\r\n  at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity(InboundJaxrsResponse.java:123)\r\n  at org.gitlab4j.api.ProjectApi.getProjects(ProjectApi.java:70)\r\n  at com.aliyun.acs.hubmanager.service.util.service.impl.oauth.impl.NewOAuthRemoteService4GitlabImpl.main(NewOAuthRemoteService4GitlabImpl.java:245)\r\nCaused by: com.alibaba.securitysdk.fastjson.JSONException: parse enum org.gitlab4j.api.models.AccessLevel error, value : 30\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.EnumDeserializer.deserialze(EnumDeserializer.java:125)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.DefaultFieldDeserializer.parseField(DefaultFieldDeserializer.java:85)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.parseField(JavaBeanDeserializer.java:1074)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:769)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.parseRest(JavaBeanDeserializer.java:1279)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.FastjsonASMDeserializer_4_ProjectSharedGroup.deserialze(Unknown Source)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:263)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.ArrayListTypeFieldDeserializer.parseArray(ArrayListTypeFieldDeserializer.java:172)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.ArrayListTypeFieldDeserializer.parseField(ArrayListTypeFieldDeserializer.java:60)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.parseField(JavaBeanDeserializer.java:1074)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:769)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.parseRest(JavaBeanDeserializer.java:1279)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.FastjsonASMDeserializer_2_Project.deserialze(Unknown Source)\r\n  at com.alibaba.securitysdk.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:263)\r\n  at com.alibaba.securitysdk.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:750)\r\n  at com.alibaba.securitysdk.fastjson.serializer.CollectionCodec.deserialze(CollectionCodec.java:126)\r\n  at com.alibaba.securitysdk.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:664)\r\n  at com.alibaba.securitysdk.fastjson.JSON.parseObject(JSON.java:358)\r\n  at com.alibaba.securitysdk.fastjson.JSON.parseObject(JSON.java:326)\r\n  at com.alibaba.securitysdk.fastjson.JSON.parseObject(JSON.java:289)\r\n  at com.alibaba.securitysdk.fastjson.JSON.parseObject(JSON.java:395)\r\n  at com.alibaba.securitysdk.fastjson.JSON.parseObject(JSON.java:477)\r\n  at com.alibaba.securitysdk.fastjson.support.jaxrs.FastJsonProvider.readFrom(FastJsonProvider.java:369)\r\n  ... 16 more\r\n\r\nProcess finished with exit code 1\r\n`\r\n\r\nGitlab开源SDK使用了JacksonJSON进行解析，Fastjson提供的Provider不能做到兼容的解析（在枚举值上的解析策略不一样）"},"comment":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/comments/431818621","html_url":"https://github.com/alibaba/fastjson/issues/2040#issuecomment-431818621","issue_url":"https://api.github.com/repos/alibaba/fastjson/issues/2040","id":431818621,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTgxODYyMQ==","user":{"login":"hzm502","id":29766817,"node_id":"MDQ6VXNlcjI5NzY2ODE3","avatar_url":"https://avatars0.githubusercontent.com/u/29766817?v=4","gravatar_id":"","url":"https://api.github.com/users/hzm502","html_url":"https://github.com/hzm502","followers_url":"https://api.github.com/users/hzm502/followers","following_url":"https://api.github.com/users/hzm502/following{/other_user}","gists_url":"https://api.github.com/users/hzm502/gists{/gist_id}","starred_url":"https://api.github.com/users/hzm502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzm502/subscriptions","organizations_url":"https://api.github.com/users/hzm502/orgs","repos_url":"https://api.github.com/users/hzm502/repos","events_url":"https://api.github.com/users/hzm502/events{/privacy}","received_events_url":"https://api.github.com/users/hzm502/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T12:20:27Z","updated_at":"2018-10-22T12:20:27Z","author_association":"NONE","body":"will this issue be fixed?"}}
{"actor":{"display_login":"hzm502"}}