Skip to content

Fix DSL for inner bean names generation #8639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

artembilan
Copy link
Member

The IntegrationFlowBeanPostProcessor.processIntegrationComponentSpec() uses a wrong generateBeanName() for component to register making the provided id as a prefix

  • Use generateBeanName(Object instance, String prefix, @Nullable String fallbackId, boolean useFlowIdAsPrefix) instead to properly "fallback" to the provided name

Cherry-pick to 6.1.x

The `IntegrationFlowBeanPostProcessor.processIntegrationComponentSpec()`
uses a wrong `generateBeanName()` for component to register making the
provided `id` as a prefix

* Use `generateBeanName(Object instance, String prefix, @nullable String fallbackId, boolean useFlowIdAsPrefix)`
instead to properly "fallback" to the provided name

**Cherry-pick to `6.1.x`**
@artembilan artembilan added this to the 6.2.0-M1 milestone Jun 7, 2023
@garyrussell garyrussell merged commit 8b8a7a4 into spring-projects:main Jun 8, 2023
garyrussell pushed a commit that referenced this pull request Jun 8, 2023
The `IntegrationFlowBeanPostProcessor.processIntegrationComponentSpec()`
uses a wrong `generateBeanName()` for component to register making the
provided `id` as a prefix

* Use `generateBeanName(Object instance, String prefix, @nullable String fallbackId, boolean useFlowIdAsPrefix)`
instead to properly "fallback" to the provided name

**Cherry-pick to `6.1.x`**
@garyrussell
Copy link
Contributor

...and cherry-picked to 6.1.x as 1a8450b

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.

2 participants