{"action":"opened","issue":{"url":"https://api.github.com/repos/artem-zinnatullin/AutoJackson/issues/6","repository_url":"https://api.github.com/repos/artem-zinnatullin/AutoJackson","labels_url":"https://api.github.com/repos/artem-zinnatullin/AutoJackson/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/artem-zinnatullin/AutoJackson/issues/6/comments","events_url":"https://api.github.com/repos/artem-zinnatullin/AutoJackson/issues/6/events","html_url":"https://github.com/artem-zinnatullin/AutoJackson/issues/6","id":133993704,"number":6,"title":"Builder with default values","user":{"login":"kleewho","id":872650,"avatar_url":"https://avatars.githubusercontent.com/u/872650?v=3","gravatar_id":"","url":"https://api.github.com/users/kleewho","html_url":"https://github.com/kleewho","followers_url":"https://api.github.com/users/kleewho/followers","following_url":"https://api.github.com/users/kleewho/following{/other_user}","gists_url":"https://api.github.com/users/kleewho/gists{/gist_id}","starred_url":"https://api.github.com/users/kleewho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleewho/subscriptions","organizations_url":"https://api.github.com/users/kleewho/orgs","repos_url":"https://api.github.com/users/kleewho/repos","events_url":"https://api.github.com/users/kleewho/events{/privacy}","received_events_url":"https://api.github.com/users/kleewho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T14:22:54Z","updated_at":"2016-02-16T14:22:54Z","closed_at":null,"body":"Here's the thing. I'd like to use Builder to support default values for some of the fields. It would look like this:\r\n\r\n```java\r\n@AutoValue\r\n@JsonDeserialize(builder = AutoValue_Tweet.Builder.class)\r\npublic abstract class Tweet {\r\n\r\n    @NotNull\r\n    @JsonCreator\r\n    public static Builder builder() {\r\n        return new AutoValue_Tweet.Builder().content(\"Immutability not for everybody!\");\r\n    }\r\n\r\n    @NotNull\r\n    @JsonProperty(\"author\")\r\n    public abstract String author();\r\n\r\n    @NotNull\r\n    @JsonProperty(\"content\")\r\n    public abstract String content();\r\n\r\n    @AutoValue.Builder\r\n    public static abstract class Builder {\r\n\r\n        @NotNull\r\n        @JsonProperty(\"author\")\r\n        public abstract Builder author(@NotNull String author);\r\n\r\n        @NotNull\r\n        @JsonProperty(\"content\")\r\n        public abstract Builder content(@NotNull String content);\r\n\r\n        @NotNull\r\n        public abstract Tweet build();\r\n    }\r\n}\r\n```\r\n\r\nwhich according to this page http://wiki.fasterxml.com/JacksonFeatureBuilderPattern should work. Any ideas what I'm doing wrong? Basically @JsonCreator is ignored. With auto value I can't use builder and static factory method (to build in code using builder and jackson would have to deal with factory method) cause c-tor is private."}}