You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/08/16 09:56:14 UTC

[GitHub] [dubbo] changfubai opened a new issue #8516: mock use default/true only load the first interface.

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?
   
   ![image](https://user-images.githubusercontent.com/20989201/129545901-f2d6f893-551d-425f-a7aa-3fee7d495c22.png)
   
   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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] changfubai commented on issue #8516: mock use default/true only load the first interface.

Posted by GitBox <gi...@apache.org>.
changfubai commented on issue #8516:
URL: https://github.com/apache/dubbo/issues/8516#issuecomment-903491216


   have been submitted into master and 3.0 branch, I will check it in 2.6.x and 2.5.x branch.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] changfubai commented on issue #8516: mock use default/true only load the first interface.

Posted by GitBox <gi...@apache.org>.
changfubai commented on issue #8516:
URL: https://github.com/apache/dubbo/issues/8516#issuecomment-912560975


   fixed on all branch.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] changfubai closed issue #8516: mock use default/true only load the first interface.

Posted by GitBox <gi...@apache.org>.
changfubai closed issue #8516:
URL: https://github.com/apache/dubbo/issues/8516


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org