{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13258","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13258/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13258/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13258/events","html_url":"https://github.com/spring-projects/spring-boot/issues/13258","id":326381150,"node_id":"MDU6SXNzdWUzMjYzODExNTA=","number":13258,"title":"Failure analysis for a BindException with an unexpected root cause (such as ArrayIndexOutOfBoundsException) is unhelpful","user":{"login":"sbueringer","id":4662360,"node_id":"MDQ6VXNlcjQ2NjIzNjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4662360?v=4","gravatar_id":"","url":"https://api.github.com/users/sbueringer","html_url":"https://github.com/sbueringer","followers_url":"https://api.github.com/users/sbueringer/followers","following_url":"https://api.github.com/users/sbueringer/following{/other_user}","gists_url":"https://api.github.com/users/sbueringer/gists{/gist_id}","starred_url":"https://api.github.com/users/sbueringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbueringer/subscriptions","organizations_url":"https://api.github.com/users/sbueringer/orgs","repos_url":"https://api.github.com/users/sbueringer/repos","events_url":"https://api.github.com/users/sbueringer/events{/privacy}","received_events_url":"https://api.github.com/users/sbueringer/received_events","type":"User","site_admin":false},"labels":[{"id":293438798,"node_id":"MDU6TGFiZWwyOTM0Mzg3OTg=","url":"https://api.github.com/repos/spring-projects/spring-boot/labels/status:%20waiting-for-triage","name":"status: waiting-for-triage","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-25T04:55:12Z","updated_at":"2018-07-05T08:37:11Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm using Spring Boot 2.0.2 with Kotlin 1.2.41. I'm trying to use an enum as ConfigurationProperty. I wrote a minimal example application to reproduce the issue:\r\nhttps://github.com/sbueringer/springboot-kotlin-enum/\r\n\r\nI have the following ConfigurationProperties:\r\n````\r\n@Configuration\r\n@ConfigurationProperties(prefix = \"custom\")\r\n@Validated\r\nclass Properties {\r\n    var test = TestEnum.VALUE1\r\n}\r\nenum class TestEnum {VALUE1, VALUE2}\r\n````\r\nIn combination with the following application.yaml:\r\n````\r\ncustom:\r\n  test: VALUE2\r\n````\r\nI get the following exception on startup:\r\n```\r\n2018-05-25 06:45:21.848  WARN 22061 --- [  restartedMain] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'application': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'properties': Could not bind properties to 'Properties' : prefix=custom, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'custom.test' to com.example.TestEnum\r\n```\r\n\r\nTo reproduce, just clone the repository and startup the SpringBootApplication.\r\n\r\nEdit: It seems to work, if I remove the `@Validated` annotation. Is that intended?"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/402648102","html_url":"https://github.com/spring-projects/spring-boot/issues/13258#issuecomment-402648102","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13258","id":402648102,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjY0ODEwMg==","user":{"login":"wilkinsona","id":914682,"node_id":"MDQ6VXNlcjkxNDY4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/914682?v=4","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T08:37:11Z","updated_at":"2018-07-05T08:37:11Z","author_association":"MEMBER","body":"I'm not sure if this will also happen with 1.5. Assigning to 1.5.x for now at least."}}
{"actor":{"display_login":"wilkinsona"}}