{"action":"created","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1821","repository_url":"https://api.github.com/repos/dropwizard/dropwizard","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1821/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1821/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1821/events","html_url":"https://github.com/dropwizard/dropwizard/issues/1821","id":189306738,"number":1821,"title":"sayHello() in the Getting Started/Resource class doesn't work out of the box","user":{"login":"mcummingscb","id":15306136,"avatar_url":"https://avatars.githubusercontent.com/u/15306136?v=3","gravatar_id":"","url":"https://api.github.com/users/mcummingscb","html_url":"https://github.com/mcummingscb","followers_url":"https://api.github.com/users/mcummingscb/followers","following_url":"https://api.github.com/users/mcummingscb/following{/other_user}","gists_url":"https://api.github.com/users/mcummingscb/gists{/gist_id}","starred_url":"https://api.github.com/users/mcummingscb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcummingscb/subscriptions","organizations_url":"https://api.github.com/users/mcummingscb/orgs","repos_url":"https://api.github.com/users/mcummingscb/repos","events_url":"https://api.github.com/users/mcummingscb/events{/privacy}","received_events_url":"https://api.github.com/users/mcummingscb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-11-15T06:00:15Z","updated_at":"2016-11-15T21:27:47Z","closed_at":null,"body":"Using Java 1.8, I can't get this method to compile:\r\n```\r\n    public Saying sayHello(@QueryParam(\"name\") Optional<String> name) {\r\n        final String value = String.format(template, name.orElse(defaultName));\r\n        return new Saying(counter.incrementAndGet(), value);\r\n    }\r\n```\r\n\r\nI get incorrect parameter type errors on QueryParam, it doesn't matter if I'm using Java.util.Optional or google's Optional.  I found this SO post but it didn't fix the issue for me: http://stackoverflow.com/questions/27757877/simple-dropwizard-0-7-1-app-failing-over-optional-queryparam-w-java-8"},"comment":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/comments/260774140","html_url":"https://github.com/dropwizard/dropwizard/issues/1821#issuecomment-260774140","issue_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1821","id":260774140,"user":{"login":"mcummingscb","id":15306136,"avatar_url":"https://avatars.githubusercontent.com/u/15306136?v=3","gravatar_id":"","url":"https://api.github.com/users/mcummingscb","html_url":"https://github.com/mcummingscb","followers_url":"https://api.github.com/users/mcummingscb/followers","following_url":"https://api.github.com/users/mcummingscb/following{/other_user}","gists_url":"https://api.github.com/users/mcummingscb/gists{/gist_id}","starred_url":"https://api.github.com/users/mcummingscb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcummingscb/subscriptions","organizations_url":"https://api.github.com/users/mcummingscb/orgs","repos_url":"https://api.github.com/users/mcummingscb/repos","events_url":"https://api.github.com/users/mcummingscb/events{/privacy}","received_events_url":"https://api.github.com/users/mcummingscb/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T21:27:47Z","updated_at":"2016-11-15T21:27:47Z","body":">OK, I checked out the dropwizard repo. \r\n^^^"}}
{"actor":{"display_login":"mcummingscb"}}