{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/19882","repository_url":"https://api.github.com/repos/akka/akka","labels_url":"https://api.github.com/repos/akka/akka/issues/19882/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/19882/comments","events_url":"https://api.github.com/repos/akka/akka/issues/19882/events","html_url":"https://github.com/akka/akka/issues/19882","id":136447332,"number":19882,"title":"New Java API: creating Encoder","user":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/easy-to-contribute","name":"easy-to-contribute","color":"009800"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"CCCCCC"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:java","name":"t:http:java","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/akka/akka/milestones/78","html_url":"https://github.com/akka/akka/milestones/2.4.3","labels_url":"https://api.github.com/repos/akka/akka/milestones/78/labels","id":1586018,"number":78,"title":"2.4.3","description":"","creator":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":99,"state":"open","created_at":"2016-02-16T15:38:41Z","updated_at":"2016-03-25T17:37:58Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-25T17:01:27Z","updated_at":"2016-03-29T04:08:54Z","closed_at":null,"body":"The old JavaDSL does not allow creating Encoder instances in javadsl.\r\nThe new one will be able to, we just need to add it ;-)"},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/202700962","html_url":"https://github.com/akka/akka/issues/19882#issuecomment-202700962","issue_url":"https://api.github.com/repos/akka/akka/issues/19882","id":202700962,"user":{"login":"agolubev","id":461456,"avatar_url":"https://avatars.githubusercontent.com/u/461456?v=3","gravatar_id":"","url":"https://api.github.com/users/agolubev","html_url":"https://github.com/agolubev","followers_url":"https://api.github.com/users/agolubev/followers","following_url":"https://api.github.com/users/agolubev/following{/other_user}","gists_url":"https://api.github.com/users/agolubev/gists{/gist_id}","starred_url":"https://api.github.com/users/agolubev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agolubev/subscriptions","organizations_url":"https://api.github.com/users/agolubev/orgs","repos_url":"https://api.github.com/users/agolubev/repos","events_url":"https://api.github.com/users/agolubev/events{/privacy}","received_events_url":"https://api.github.com/users/agolubev/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T04:08:54Z","updated_at":"2016-03-29T04:08:54Z","body":"@ktoso, as far as I understand enum akka.http.javadsl.server.Coder should be changed to be able to create custom Coder like described in https://blogs.oracle.com/darcy/entry/enums_and_mixins ?\r\nAlso can Java 8 create instance of trait akka.http.scaladsl.coding.Coder (that extends Encoder with Decoder)? If the anser is -no-, than need to look to another approach with splitting encoder and decoder in Java API\r\n"}}