Skip to content

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

Merged
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23594-to-camel-4.18.x
May 29, 2026
Merged

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

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 29, 2026

Backport of #23594 to camel-4.18.x

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

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

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

  • The only cherry-pick conflict was the upgrade-guide file: the source commit edits camel-4x-upgrade-guide-4_21.adoc, which does not exist on camel-4.18.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_18.adoc instead, alongside the sibling sub-task entries. The canonical 4_18 guide on main is doc-synced separately as part of CAMEL-23577.
  • All code / catalog / endpoint-DSL files cherry-picked cleanly; IrcConstants on 4.18.x is not @Deprecated (deprecation is 4.21-only) and the rename applied without touching the class declaration.

Local build

Full reactor mvn clean install -DskipTests on camel-4.18.x — green (12923 goals, 11213 executed, 1710 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.18 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 05:35
@oscerd oscerd merged commit 2959633 into apache:camel-4.18.x May 29, 2026
3 checks passed
@oscerd oscerd deleted the backport/23594-to-camel-4.18.x branch May 29, 2026 07:32
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