Skip to content

Commit fd5e89a

Browse files
committed
Fix issue#16083
1 parent 24a8f50 commit fd5e89a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/proxy/AbstractProxyFactory.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ public <T> T getProxy(Invoker<T> invoker, boolean generic) throws RpcException {
6969

7070
Class<?> realInterfaceClass = null;
7171
if (generic) {
72-
// In generic mode, ensure GenericService is the first interface so that
73-
// Spring bean type resolution treats the proxy as GenericService.
74-
// This prevents BeanNotOfRequiredTypeException when the real interface
75-
// class exists on the classpath and would otherwise take priority.
76-
interfaces.add(invoker.getInterface());
77-
7872
if (GenericService.class.isAssignableFrom(invoker.getInterface())
7973
&& Dubbo2CompactUtils.isEnabled()
8074
&& Dubbo2CompactUtils.isGenericServiceClassLoaded()) {

0 commit comments

Comments
 (0)