{"action":"opened","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2056","repository_url":"https://api.github.com/repos/FasterXML/jackson-databind","labels_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2056/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2056/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/2056/events","html_url":"https://github.com/FasterXML/jackson-databind/issues/2056","id":330190300,"node_id":"MDU6SXNzdWUzMzAxOTAzMDA=","number":2056,"title":"Support AnnotatedParameter.getName","user":{"login":"TuomasKiviaho","id":886635,"node_id":"MDQ6VXNlcjg4NjYzNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/886635?v=4","gravatar_id":"","url":"https://api.github.com/users/TuomasKiviaho","html_url":"https://github.com/TuomasKiviaho","followers_url":"https://api.github.com/users/TuomasKiviaho/followers","following_url":"https://api.github.com/users/TuomasKiviaho/following{/other_user}","gists_url":"https://api.github.com/users/TuomasKiviaho/gists{/gist_id}","starred_url":"https://api.github.com/users/TuomasKiviaho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuomasKiviaho/subscriptions","organizations_url":"https://api.github.com/users/TuomasKiviaho/orgs","repos_url":"https://api.github.com/users/TuomasKiviaho/repos","events_url":"https://api.github.com/users/TuomasKiviaho/events{/privacy}","received_events_url":"https://api.github.com/users/TuomasKiviaho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-07T09:29:26Z","updated_at":"2018-06-07T09:29:26Z","closed_at":null,"author_association":"NONE","body":"The ` AnnotatedParameter.getName` is still in pre jdk8 era by the looks of the javadoc\r\n\r\n``` java\r\n    /**\r\n     * Parameters have no names in bytecode (unlike in source code),\r\n     * will always return empty String (\"\").\r\n     */\r\n```\r\n\r\nThere is finally  `-parameters` compiler switch that makes these available in the reflection. Note that the `java.lang.reflect.Parameter.getName`  doesn't return empty string anymore but instead `\"arg.\" + index`.\r\n\r\nThe classes involved are ...\r\n\r\n- com/fasterxml/jackson/databind/introspect/AnnotatedConstructor.java\r\n- com/fasterxml/jackson/databind/introspect/AnnotatedMethod.java\r\n- com/fasterxml/jackson/databind/introspect/AnnotatedParameter.java\r\n- com/fasterxml/jackson/databind/introspect/AnnotatedWithParams.java\r\n\r\n... and a wrapper called com.fasterxml.jackson.databind.deser.impl.CreatorCollector.StdTypeConstructor\r\n\r\nI don't remember if there is jdk8 requirement in Jackson already  but this change should be jdk7 compatible if one doesn't like to craft an `AnnotatedExecutable` to de-duplicate most of the `AnnotatedConstructor` and `AnnotatedMethod` logic into a common super class."}}
{"actor":{"display_login":"TuomasKiviaho"}}