posted 13 years ago
The code below doesn't work, it always prints '0' for results found. Should it work? I've tried all kinds of constructor versions with simple tests, but can never get Reflections to find any subtypes of any of my classes. The wiki example leads one to believe that the "getSubTypesOf" method is functional. Was it included unfinished by mistake? People in forums on the web talk about this method like it's great,.. but I wonder if they have ever used it. Surely they have I guess, and I'm doing something wrong or not interpreting the documentation correctly. The example below is with nested classes(just for convenience to include in a post),.. yet I also tested it with the classes broken out into separate files with no success.