Skip to content

[type:fix] set dubbo method config in reference#5944

Merged
yu199195 merged 2 commits intoapache:masterfrom
eye-gu:fix-5943
Feb 27, 2025
Merged

[type:fix] set dubbo method config in reference#5944
yu199195 merged 2 commits intoapache:masterfrom
eye-gu:fix-5943

Conversation

@eye-gu
Copy link
Copy Markdown
Contributor

@eye-gu eye-gu commented Feb 26, 2025

close #5943

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

for (MethodConfig methodConfig : serviceBean.getMethods()) {
DubboRpcMethodExt methodExt = new DubboRpcMethodExt();
methodExt.setName(methodConfig.getName());
methodExt.setLoadbalance(methodConfig.getLoadbalance());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is not be null?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configuration of the method inherits from the interface. If it is null, the configuration of the interface will be used. So setting default values when null is not a good idea

@yu199195 yu199195 merged commit 8fc09d7 into apache:master Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] dubbo method config not implemented correctly

2 participants