Skip to content

Commit

Permalink
Ignore abstract classes in Filter hierarchy
Browse files Browse the repository at this point in the history
Fixes: quarkusio#16359
(cherry picked from commit ee723bc)
  • Loading branch information
geoand authored and gsmet committed Apr 10, 2021
1 parent 8825dd7 commit 11fde24
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.resteasy.reactive.common.processor.scanning;

import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
Expand Down Expand Up @@ -84,6 +85,9 @@ public static void scanForIOInterceptors(ResourceInterceptors interceptors, Inde
private static <T> void handleDiscoveredInterceptor(
ApplicationScanningResult applicationResultBuildItem, InterceptorContainer<T> interceptorContainer, IndexView index,
ClassInfo filterClass) {
if (Modifier.isAbstract(filterClass.flags())) {
return;
}
ApplicationScanningResult.KeepProviderResult keepProviderResult = applicationResultBuildItem.keepProvider(filterClass);
if (keepProviderResult != ApplicationScanningResult.KeepProviderResult.DISCARD) {
ResourceInterceptor<T> interceptor = interceptorContainer.create();
Expand Down

0 comments on commit 11fde24

Please sign in to comment.