{"action":"created","issue":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/880","repository_url":"https://api.github.com/repos/joel-costigliola/assertj-core","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/880/labels{/name}","comments_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/880/comments","events_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/880/events","html_url":"https://github.com/joel-costigliola/assertj-core/issues/880","id":200368017,"number":880,"title":"Extracting of properties implemented by default interface method broken in 3.6.0 (regression from 3.5.2)","user":{"login":"adammichalik","id":504670,"avatar_url":"https://avatars.githubusercontent.com/u/504670?v=3","gravatar_id":"","url":"https://api.github.com/users/adammichalik","html_url":"https://github.com/adammichalik","followers_url":"https://api.github.com/users/adammichalik/followers","following_url":"https://api.github.com/users/adammichalik/following{/other_user}","gists_url":"https://api.github.com/users/adammichalik/gists{/gist_id}","starred_url":"https://api.github.com/users/adammichalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammichalik/subscriptions","organizations_url":"https://api.github.com/users/adammichalik/orgs","repos_url":"https://api.github.com/users/adammichalik/repos","events_url":"https://api.github.com/users/adammichalik/events{/privacy}","received_events_url":"https://api.github.com/users/adammichalik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-12T13:34:09Z","updated_at":"2017-01-12T20:22:39Z","closed_at":null,"body":"#### Summary\r\nWhen a class implements an interface that has a `getXxx()` method with default implementation, `extracting(\"xxx\")` fails with\r\n\r\n```\r\norg.assertj.core.util.introspection.IntrospectionError: \r\nCan't find any field or property with name 'name'.\r\nError when introspecting properties was :\r\n- No getter for property 'name' in [...] \r\nError when introspecting fields was :\r\n- Unable to obtain the value of the field <'name'> from <...@d70c109>\r\n```\r\n\r\nThis used to work in 3.5.2.\r\n\r\n#### Example\r\n\r\n```java\r\nimport java.util.Arrays;\r\nimport java.util.List;\r\n\r\nimport org.junit.Test;\r\n\r\nimport static org.assertj.core.api.Assertions.*;\r\n\r\npublic class DefaultPropertyTest {\r\n    @Test\r\n    public void hasDefaultName() {\r\n        List<Person> people = Arrays.asList(new Person());\r\n\r\n        assertThat(people).extracting(\"name\").containsOnly(\"John Doe\");\r\n    }\r\n}\r\n\r\nclass Person implements DefaultName {\r\n\r\n}\r\n\r\ninterface DefaultName {\r\n    default String getName() {\r\n        return \"John Doe\";\r\n    }\r\n}\r\n```\r\n\r\n#### Java 8 specific ?\r\nYES (interface default methods)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/comments/272272800","html_url":"https://github.com/joel-costigliola/assertj-core/issues/880#issuecomment-272272800","issue_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/880","id":272272800,"user":{"login":"joel-costigliola","id":382613,"avatar_url":"https://avatars.githubusercontent.com/u/382613?v=3","gravatar_id":"","url":"https://api.github.com/users/joel-costigliola","html_url":"https://github.com/joel-costigliola","followers_url":"https://api.github.com/users/joel-costigliola/followers","following_url":"https://api.github.com/users/joel-costigliola/following{/other_user}","gists_url":"https://api.github.com/users/joel-costigliola/gists{/gist_id}","starred_url":"https://api.github.com/users/joel-costigliola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joel-costigliola/subscriptions","organizations_url":"https://api.github.com/users/joel-costigliola/orgs","repos_url":"https://api.github.com/users/joel-costigliola/repos","events_url":"https://api.github.com/users/joel-costigliola/events{/privacy}","received_events_url":"https://api.github.com/users/joel-costigliola/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T20:22:39Z","updated_at":"2017-01-12T20:22:39Z","body":"Thanks for reporting this."}}
{"actor":{"display_login":"joel-costigliola"}}