Skip to content

CAMEL-24296: document the setObjectInputFilter IllegalStateException gotcha in the upgrade guide - #25401

Merged
davsclaus merged 1 commit into
apache:mainfrom
oscerd:fix/CAMEL-24296-doc
Aug 7, 2026
Merged

CAMEL-24296: document the setObjectInputFilter IllegalStateException gotcha in the upgrade guide#25401
davsclaus merged 1 commit into
apache:mainfrom
oscerd:fix/CAMEL-24296-doc

Conversation

@oscerd

@oscerd oscerd commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #25378 (CAMEL-24296).

During the merge of #25378 this upgrade-guide note — requested by @gnodet in review — was left behind by GitHub's fork-head sync lag: the PR was merged at the previous commit before the doc commit synced to the PR head. This lands it on main.

It documents that the two-argument CamelObjectInputStream(InputStream, CamelContext) constructor now always installs a filter, so a subsequent setObjectInputFilter() call throws IllegalStateException ("filter can not be set more than once") on JDK 17+, and recommends the three-argument constructor as the migration path.

Docs-only.

Claude Code on behalf of oscerd

…gotcha in the upgrade guide

Per review: the 2-arg CamelObjectInputStream constructor now always installs a
filter, so a subsequent setObjectInputFilter() call throws IllegalStateException
on JDK 17+. Note the backward-compat change and recommend the 3-arg constructor.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions github-actions Bot added the docs label Aug 7, 2026
@oscerd
oscerd requested review from davsclaus and gnodet August 7, 2026 07:39
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • docs

🔬 Scalpel shadow comparison — Scalpel: 1 tested, 0 compile-only — current: 0 all tested

Maveniverse Scalpel detected 1 affected modules (current approach: 0).

⚠️ Modules only in Scalpel (1)
  • docs

Skip-tests mode would test 1 modules (1 direct + 0 downstream), skip tests for 0 (generated code, meta-modules)

Modules Scalpel would test (1)
  • docs

ℹ️ Shadow mode — Scalpel observes but does not affect test execution. Learn more


⚙️ View full build and test results

@davsclaus
davsclaus merged commit b709779 into apache:main Aug 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants