Skip to content

Commit ab07a4b

Browse files
authored
fix initialization problem when generateing wrapper object (#15276) (#15288)
1 parent c778473 commit ab07a4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,9 @@ private T createExtension(String name, boolean wrap) {
800800
|| ArrayUtils.contains(wrapper.matches(), name))
801801
&& !ArrayUtils.contains(wrapper.mismatches(), name));
802802
if (match) {
803-
instance = injectExtension(
804-
(T) wrapperClass.getConstructor(type).newInstance(instance));
803+
instance = (T) wrapperClass.getConstructor(type).newInstance(instance);
804+
instance = postProcessBeforeInitialization(instance, name);
805+
injectExtension(instance);
805806
instance = postProcessAfterInitialization(instance, name);
806807
}
807808
}

0 commit comments

Comments
 (0)