You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
After updated to 0.10 or 0.10.1, Reflections library doesn't works correctly with .getMethodsAnnotatedWith() deprecated method.
Works well with the version 0.9.11
Bellow the code to reproduce it
Thanks a lot for all your works
Cheers
package my.test;
import java.lang.reflect.Method;
import org.reflections.Reflections;
import org.reflections.scanners.MethodAnnotationsScanner;
import org.reflections.util.ClasspathHelper;
import org.reflections.util.ConfigurationBuilder;
public class FailedReflection10OnAnnotatedMethod {
public static void main(String[] args) {
Reflections reflections = new Reflections(new ConfigurationBuilder().setUrls(ClasspathHelper.forPackage("my.test")).setScanners(new MethodAnnotationsScanner()));
for (Method method : reflections.getMethodsAnnotatedWith(AnAnnotation.class)) {
System.out.println("found " + method.getName());
}
}
}
package my.test;
public class ClassWithAnnotatedMethod {
@AnAnnotation
public void annotatedMethod() {
}
}
Hi
After updated to 0.10 or 0.10.1, Reflections library doesn't works correctly with .getMethodsAnnotatedWith() deprecated method.
Works well with the version 0.9.11
Bellow the code to reproduce it
Thanks a lot for all your works
Cheers
The text was updated successfully, but these errors were encountered: