cailin186 / reflections

Automatically exported from code.google.com/p/reflections
Do What The F*ck You Want To Public License
0 stars 0 forks source link

getSubTypesOf(Object.class) doesnt work #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Set<Class<? extends Object>> subTypesOf = new 
Reflections(packageName).getSubTypesOf(Object.class);

returns empty collection

Original issue reported on code.google.com by panbyd...@gmail.com on 17 Jul 2010 at 9:07

GoogleCodeExporter commented 9 years ago
That's true, and on purpose, in order to reduce the subTypes store.
for now, you can create a new scanner (much like 
[http://code.google.com/p/reflections/source/browse/trunk/reflections/src/main/j
ava/org/reflections/scanners/SubTypesScanner.java SubTypesScanner], but just 
without the filtering when Object is a direct superclass). 
next version will allow to change this filter by issuing filterResultsBy()

Original comment by ronm...@gmail.com on 19 Jul 2010 at 5:20

GoogleCodeExporter commented 9 years ago
fixed on trunk

Original comment by ronm...@gmail.com on 12 May 2011 at 8:28