{"action":"created","issue":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/30","labels_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/30/comments","events_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/30/events","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/30","id":122298461,"number":30,"title":"Cannot just gather all interfaces in a package","user":{"login":"moldowan","id":1213511,"avatar_url":"https://avatars.githubusercontent.com/u/1213511?v=3","gravatar_id":"","url":"https://api.github.com/users/moldowan","html_url":"https://github.com/moldowan","followers_url":"https://api.github.com/users/moldowan/followers","following_url":"https://api.github.com/users/moldowan/following{/other_user}","gists_url":"https://api.github.com/users/moldowan/gists{/gist_id}","starred_url":"https://api.github.com/users/moldowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldowan/subscriptions","organizations_url":"https://api.github.com/users/moldowan/orgs","repos_url":"https://api.github.com/users/moldowan/repos","events_url":"https://api.github.com/users/moldowan/events{/privacy}","received_events_url":"https://api.github.com/users/moldowan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-12-15T15:35:27Z","updated_at":"2015-12-17T17:57:39Z","closed_at":"2015-12-16T10:03:04Z","body":"Imagine you have a package with only interfaces.\r\n\r\nNow try to find all these interfaces with FastClasspathScanner:\r\n- .getNamesOfAllClasses() after just .scan() without any Processors returns only classes, not interfaces\r\n- .matchSubclassesOf(Object.class, ...) + .scan() does not match anything\r\n- .matchSubinterfacesOf(Object.class, ...) / .matchClassesImplementing() + .scan() both yield an exception\r\n\r\n.matchClassesWithAnnotation() does match the interfaces but my interfaces don't have an annotation.\r\n\r\nExpectations:\r\nAs there is no .getNamesOfAllInterfaces(), I expect .getNamesOfAllClasses() to return the interface names (besides \"regular\" class names).\r\nIn the end I need the class objects of all interfaces, not the just the names. So for me the best would be if matchSubclassesOf(Object.class, ...) also matched interfaces. This would be consistent with Object.class.isAssignableFrom(MyInterface.class)."},"comment":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/comments/165531046","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/30#issuecomment-165531046","issue_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/30","id":165531046,"user":{"login":"lukehutch","id":811305,"avatar_url":"https://avatars.githubusercontent.com/u/811305?v=3","gravatar_id":"","url":"https://api.github.com/users/lukehutch","html_url":"https://github.com/lukehutch","followers_url":"https://api.github.com/users/lukehutch/followers","following_url":"https://api.github.com/users/lukehutch/following{/other_user}","gists_url":"https://api.github.com/users/lukehutch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehutch/subscriptions","organizations_url":"https://api.github.com/users/lukehutch/orgs","repos_url":"https://api.github.com/users/lukehutch/repos","events_url":"https://api.github.com/users/lukehutch/events{/privacy}","received_events_url":"https://api.github.com/users/lukehutch/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T17:57:39Z","updated_at":"2015-12-17T17:57:39Z","body":"Great! Thanks for testing the changes and letting me know.\nOn Dec 17, 2015 2:53 AM, \"moldowan\" <notifications@github.com> wrote:\n\n> .matchAllInterfaceClasses() is working as expected in 1.9.11. Thank you!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/lukehutch/fast-classpath-scanner/issues/30#issuecomment-165421178>\n> .\n>\n"}}