changfubai opened a new issue #8516: URL: https://github.com/apache/dubbo/issues/8516
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. - [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 2.7.8 * Operating System version: mac * Java version: 1.8 ### Steps to reproduce this issue 1. create two interface * com.person.dubbo.ServiceA * String methodA(); * com.person.dubbo.ServiceB * String methodB(); 2. create two mock class in same package: * com.person.dubbo.ServiceAMock * com.person.dubbo.ServiceBMock 3. add properties in app. * dubbo.reference.com.person.dubbo.ServiceA.mock=force:true * dubbo.reference.com.person.dubbo.ServiceB.mock=force:true 4. invoke ServiceA and ServiceB in app. (invoke ServiceA first) ``` @DubboReference private ServiceA serviceA; @DubboReference private ServiceA serviceB; serviceA.methodA(); serviceB.methodB(); ``` 6、occur exception: `org.apache.dubbo.common.bytecode.NoSuchMethodException: Not found method "methodB" in class com.person.dubbo.ServiceAMock.` ### Expected Result invoke methodB successfully. ### Actual Result **occur exception.** What actually happens?  I will fix it later. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
