{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5859","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5859/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5859/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5859/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/5859","id":160344772,"number":5859,"title":"POJO conversion not working for List results","user":{"login":"cluttered-code","id":7899015,"avatar_url":"https://avatars.githubusercontent.com/u/7899015?v=3","gravatar_id":"","url":"https://api.github.com/users/cluttered-code","html_url":"https://github.com/cluttered-code","followers_url":"https://api.github.com/users/cluttered-code/followers","following_url":"https://api.github.com/users/cluttered-code/following{/other_user}","gists_url":"https://api.github.com/users/cluttered-code/gists{/gist_id}","starred_url":"https://api.github.com/users/cluttered-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluttered-code/subscriptions","organizations_url":"https://api.github.com/users/cluttered-code/orgs","repos_url":"https://api.github.com/users/cluttered-code/repos","events_url":"https://api.github.com/users/cluttered-code/events{/privacy}","received_events_url":"https://api.github.com/users/cluttered-code/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/Java","name":"Java","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-15T06:03:57Z","updated_at":"2016-06-15T20:23:32Z","closed_at":null,"body":"```java\r\ntry (final Connection conn = r.connection().db(DB_NAME).connect()) {\r\n    final List<Campus> results = r.table(\"campuses\")\r\n            .orderBy(\"name\")\r\n            .skip(0)\r\n            .limit(25)\r\n            .run(conn, Campus.class);\r\n\r\n    results.get(0).getId();\r\n}\r\n```\r\n\r\nOn the last line I get the following error:\r\n**java.lang.ClassCastException: java.util.HashMap cannot be cast to com.blah.foo.Campus**"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/226308644","html_url":"https://github.com/rethinkdb/rethinkdb/issues/5859#issuecomment-226308644","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5859","id":226308644,"user":{"login":"cluttered-code","id":7899015,"avatar_url":"https://avatars.githubusercontent.com/u/7899015?v=3","gravatar_id":"","url":"https://api.github.com/users/cluttered-code","html_url":"https://github.com/cluttered-code","followers_url":"https://api.github.com/users/cluttered-code/followers","following_url":"https://api.github.com/users/cluttered-code/following{/other_user}","gists_url":"https://api.github.com/users/cluttered-code/gists{/gist_id}","starred_url":"https://api.github.com/users/cluttered-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluttered-code/subscriptions","organizations_url":"https://api.github.com/users/cluttered-code/orgs","repos_url":"https://api.github.com/users/cluttered-code/repos","events_url":"https://api.github.com/users/cluttered-code/events{/privacy}","received_events_url":"https://api.github.com/users/cluttered-code/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T20:23:32Z","updated_at":"2016-06-15T20:23:32Z","body":"Strings and OffsetDateTimes. It works properly if I retrieve one item or if\nI get a Cursor, just not with the List.\n\nCheers\n\nOn Wed, Jun 15, 2016, 2:20 PM Josh Kuhn <notifications@github.com> wrote:\n\n> Hi @cluttered-code <https://github.com/cluttered-code>, what kind of data\n> types do you have in the Campus documents?\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/rethinkdb/rethinkdb/issues/5859#issuecomment-226307677>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/AHiHh8Jo6DGDD7o_EQq4c3nbTN5hhoYtks5qMF6LgaJpZM4I2Bd2>\n> .\n>\n"}}
{"actor":{"display_login":"cluttered-code"}}