I've got NullPointerException when having interface definition in java glue code package. Fixed this by ignoring interfaces while scanning glue code. I didn't write any additional tests for this issue - because ClasspathMethodScannerTest failed after adding interface and passed after fix
Fixed NullPointerException in ClasspathMethodScanner
Got NullPointerException when having interface in glue code package.
Fixed this by ignoring interfaces while scanning glue code.
I think perhaps it would be better to put the isInterface() check inside isInstantiable()
Can you check if that works and update your pullreq if it does?
Putting isInterface() check to isInstantiable() won't work. isInstantiable() already returns false for interface. Exception occurs because glueCodeClass.getSuperclass() returns null. I may put several null checks instead checking isInterface() but this seems to be more intrusive refactoring.