Skip to content

CAMEL-23282: fix unbounded BeanInfo cache growth for body OGNL expressions#22438

Merged
Croway merged 1 commit intoapache:camel-4.18.xfrom
Croway:ci-issue-CAMEL-23282-4.18.x
Apr 8, 2026
Merged

CAMEL-23282: fix unbounded BeanInfo cache growth for body OGNL expressions#22438
Croway merged 1 commit intoapache:camel-4.18.xfrom
Croway:ci-issue-CAMEL-23282-4.18.x

Conversation

@Croway
Copy link
Copy Markdown
Contributor

@Croway Croway commented Apr 3, 2026

Backport of #22437 to camel-4.18.x

Summary

  • Always use class-based BeanInfo cache keys instead of instance-based keys
  • Introspection results depend on the class type, not the instance identity
  • Instance-based keys caused cache pollution and memory leaks for ephemeral message bodies used with OGNL expressions like ${body.name}

Copy link
Copy Markdown
Contributor

@oscerd oscerd left a comment

Choose a reason for hiding this comment

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

It seems wrong.

…sions

Always use class-based cache keys since introspection results depend on
the class type, not the instance identity. Instance-based keys caused
cache pollution and memory leaks for ephemeral message bodies.
@Croway Croway force-pushed the ci-issue-CAMEL-23282-4.18.x branch from df93ac0 to f17c69b Compare April 8, 2026 08:52
@Croway Croway merged commit c3f995e into apache:camel-4.18.x Apr 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants