Both of these attempts to search for Repository sub-types within the org.tamarack.models package returned classes outside of org.tamarack.models:
new Reflections(new ConfigurationBuilder().forPackages("com.tamarack.models"))
.getSubTypesOf(Repository.class);
new Reflections("com.tamarack.models")
.getSubTypesOf(Repository.class);
In particular, org.springframework.data.repository.PagingAndSortingRepository and org.springframework.data.repository.CrudRepository were returned in addition to the expected results. I would expect Reflections to only return classes in the package com.tamarack.models for both of those calls. Lmk if I'm using the library wrong!
Both of these attempts to search for
Repositorysub-types within theorg.tamarack.modelspackage returned classes outside oforg.tamarack.models:In particular,
org.springframework.data.repository.PagingAndSortingRepositoryandorg.springframework.data.repository.CrudRepositorywere returned in addition to the expected results. I would expect Reflections to only return classes in the packagecom.tamarack.modelsfor both of those calls. Lmk if I'm using the library wrong!