Skip to content

Commit 1bace28

Browse files
committed
Don't return when @PluginFactory is present
This a workaround for apache/logging-log4j2#3126.
1 parent 26f4d11 commit 1bace28

File tree

1 file changed

+2
-2
lines changed
  • log4j-converter-plugin-descriptor/src/main/java/org/apache/logging/log4j/converter/plugins/internal

1 file changed

+2
-2
lines changed

log4j-converter-plugin-descriptor/src/main/java/org/apache/logging/log4j/converter/plugins/internal/PluginDescriptors.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ private List<String> findBuilderClassHierarchy(final ClassLoader classLoader) {
409409
for (final Annotation annotation : method.getAnnotations()) {
410410
switch (annotation.annotationType().getName()) {
411411
case PLUGIN_FACTORY:
412-
// No need to search further, there is no builder
413-
return Collections.emptyList();
412+
// Continue the search until apache/logging-log4j2#3126 is fixed.
413+
break;
414414
case PLUGIN_BUILDER_FACTORY:
415415
return computeClassHierarchy(findBuilderClass(method.getGenericReturnType()));
416416
}

0 commit comments

Comments
 (0)