{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka-http/issues/612","repository_url":"https://api.github.com/repos/akka/akka-http","labels_url":"https://api.github.com/repos/akka/akka-http/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka-http/issues/612/comments","events_url":"https://api.github.com/repos/akka/akka-http/issues/612/events","html_url":"https://github.com/akka/akka-http/issues/612","id":193357392,"number":612,"title":"Scala/Java Docs: Example code for actor interaction incorrect","user":{"login":"aksiksi","id":916621,"avatar_url":"https://avatars.githubusercontent.com/u/916621?v=3","gravatar_id":"","url":"https://api.github.com/users/aksiksi","html_url":"https://github.com/aksiksi","followers_url":"https://api.github.com/users/aksiksi/followers","following_url":"https://api.github.com/users/aksiksi/following{/other_user}","gists_url":"https://api.github.com/users/aksiksi/gists{/gist_id}","starred_url":"https://api.github.com/users/aksiksi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksiksi/subscriptions","organizations_url":"https://api.github.com/users/aksiksi/orgs","repos_url":"https://api.github.com/users/aksiksi/repos","events_url":"https://api.github.com/users/aksiksi/events{/privacy}","received_events_url":"https://api.github.com/users/aksiksi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akka/akka-http/milestones/17","html_url":"https://github.com/akka/akka-http/milestones/10.0.1","labels_url":"https://api.github.com/repos/akka/akka-http/milestones/17/labels","id":2143167,"number":17,"title":"10.0.1","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":15,"closed_issues":3,"state":"open","created_at":"2016-11-18T01:09:16Z","updated_at":"2016-12-04T22:25:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-12-04T15:40:07Z","updated_at":"2016-12-04T22:25:14Z","closed_at":"2016-12-04T22:25:06Z","body":"I initially submitted a PR fixing this directly, but I closed that after reading `CONTRIBUTING.md`.\r\n\r\n### Problem\r\n\r\nThe actor interaction example on the Introduction page (the last code snippet) on both the Java and Scala docs is written incorrectly. In its current state, the example will **not** compile.\r\n\r\nPages in question:\r\n\r\n- http://doc.akka.io/docs/akka-http/current/java/http/introduction.html#routing-dsl-for-http-servers\r\n- http://doc.akka.io/docs/akka-http/current/scala/http/introduction.html#routing-dsl-for-http-servers\r\n\r\nThe example does not compile for two reasons. Firstly, the `Auction` actor itself is not defined at all in the snippet. And secondly, `Props` is not used correctly in the `actorOf` call.\r\n\r\n### Proposed Fix\r\n\r\n1. `import akka.actor.ActorSystem` => `import akka.actor.{Actor, ActorSystem, Props}`\r\n2. Write a simple `Auction` actor that prints a message on receiving a `Bid`.\r\n3. `system.actorOf(Auction.props, \"auction\")` => `system.actorOf(Props[Auction], \"auction\")`"},"comment":{"url":"https://api.github.com/repos/akka/akka-http/issues/comments/264736529","html_url":"https://github.com/akka/akka-http/issues/612#issuecomment-264736529","issue_url":"https://api.github.com/repos/akka/akka-http/issues/612","id":264736529,"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},"created_at":"2016-12-04T22:25:14Z","updated_at":"2016-12-04T22:25:14Z","body":"Merged, thanks!"}}
{"actor":{"display_login":"ktoso"}}