Skip to content

[backport camel-4.14.x] CAMEL-23629: camel-irc - align Exchange header constant names with Camel naming convention#23635

Open
oscerd wants to merge 1 commit into
apache:camel-4.14.xfrom
oscerd:backport/23594-to-camel-4.14.x
Open

[backport camel-4.14.x] CAMEL-23629: camel-irc - align Exchange header constant names with Camel naming convention#23635
oscerd wants to merge 1 commit into
apache:camel-4.14.xfrom
oscerd:backport/23594-to-camel-4.14.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 29, 2026

Backport of #23594 to camel-4.14.x

Cherry-pick of #23594 (CAMEL-23629) onto camel-4.14.x, part of the CAMEL-23577 header-naming sweep. Target release: 4.14.8.

Original PR: #23594CAMEL-23629: camel-irc - align Exchange header constant names with Camel naming convention
Jira: https://issues.apache.org/jira/browse/CAMEL-23629
4.18.x backport: #23616 (merged)

Constants renamed

Constant Previous value New value
IrcConstants.IRC_MESSAGE_TYPE irc.messageType CamelIrcMessageType
IrcConstants.IRC_TARGET irc.target CamelIrcTarget
IrcConstants.IRC_SEND_TO irc.sendTo CamelIrcSendTo
IrcConstants.IRC_USER_KICKED irc.user.kicked CamelIrcUserKicked
IrcConstants.IRC_USER_HOST irc.user.host CamelIrcUserHost
IrcConstants.IRC_USER_NICK irc.user.nick CamelIrcUserNick
IrcConstants.IRC_USER_SERVERNAME irc.user.servername CamelIrcUserServername
IrcConstants.IRC_USER_USERNAME irc.user.username CamelIrcUserUsername
IrcConstants.IRC_NUM irc.num CamelIrcNum
IrcConstants.IRC_VALUE irc.value CamelIrcValue

Compatibility

Java field names are unchanged — routes referencing the constants symbolically keep working. Routes using the literal irc.* string values must move to CamelIrc*.

Backport notes

  • Only cherry-pick conflict: the upgrade-guide file. The source commit edits camel-4x-upgrade-guide-4_21.adoc (absent on camel-4.14.x). Per the sweep convention, that hunk was dropped and the equivalent "camel-irc - potential breaking change" entry (rename table + cross-transport HeaderFilterStrategy note) was added to camel-4x-upgrade-guide-4_14.adoc, in the Upgrading from 4.14.7 to 4.14.8 section alongside the sibling sub-task entries. The canonical 4_14 guide on main is doc-synced separately as part of CAMEL-23577.
  • All code / catalog / endpoint-DSL files cherry-picked cleanly; IrcConstants on 4.14.x is not @Deprecated (deprecation is 4.21-only).

Local build

Full reactor mvn clean install -DskipTests on camel-4.14.x — green (11810 goals, 10275 executed, 1535 cached), no uncommitted regen drift.

Claude Code on behalf of Andrea Cosentino

…mel naming convention

Rename the Exchange header string values in IrcConstants from the non-Camel-prefixed
"irc.*" namespace to the project-wide "CamelIrc*" PascalCase convention, keeping the
Java field names unchanged so symbolic references keep working. Part of the
CAMEL-23577 global header-naming sweep. Updates the integration tests, component docs
and setNamesOnJoin Javadoc, regenerates the camel-catalog and endpoint DSL artifacts,
and adds a 4.14 upgrade-guide "potential breaking change" entry.

Backport of apache#23594.

(cherry picked from commit 0be886b)
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd requested review from Croway and apupier May 29, 2026 11:56
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