{"action":"reopened","issue":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/38","repository_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner","labels_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/38/comments","events_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/38/events","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/38","id":124755753,"number":38,"title":"ClassCastException: AnnotationDAGNode cannot be cast to InterfaceDAGNode","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":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-04T13:02:43Z","updated_at":"2016-03-11T21:34:54Z","closed_at":null,"body":"This is a regression since 1.9.12, probably caused by #30:\r\n```\r\njava.lang.ClassCastException: io.github.lukehutch.fastclasspathscanner.classgraph.AnnotationDAGNode cannot be cast to io.github.lukehutch.fastclasspathscanner.classgraph.InterfaceDAGNode\r\n        at io.github.lukehutch.fastclasspathscanner.classgraph.StandardClassDAGNode.connect(StandardClassDAGNode.java:66)\r\n        at io.github.lukehutch.fastclasspathscanner.classgraph.ClassGraphBuilder.<init>(ClassGraphBuilder.java:72)\r\n        at io.github.lukehutch.fastclasspathscanner.FastClasspathScanner.scan(FastClasspathScanner.java:1284)\r\n```\r\nI suppose this happens when an annotation class is encountered (or \"matched\"?).\r\n\r\nPossible hint: ``Class.isInterface()`` also returns ``true`` for annotations not just for regular interfaces!"}}