Skip to content

WorkbookUtil.validateSheetName: show control chars as U+XXXX - #1435

Merged
pjfanning merged 1 commit into
apache:trunkfrom
pjfanning:sheet-name-control-char-message
Oct 17, 2026
Merged

pjfanning merged 1 commit into
apache:trunkfrom
pjfanning:sheet-name-control-char-message

Conversation

@pjfanning

Copy link
Copy Markdown
Member

Follow-up to #1433.

  • The IllegalArgumentException for an invalid sheet-name char included the char itself, which is invisible in logs for 0x0000 and 0x0003. Control chars are now shown as a code point, e.g. Invalid char (U+0000) found at index (6) …. Printable chars are shown as before (Invalid char (:) …).
  • The tests now assert the full message, so they show which check threw, not just the exception type.

Tests: TestWorkbookUtil (3 tests).

🤖 Generated with Claude Code

Follow-up to apache#1433. The error for an invalid sheet-name char embedded the
char itself, which for 0x0000 and 0x0003 is invisible in logs. Show
control chars as a code point, and assert the full messages in the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pjfanning
pjfanning merged commit dc577a8 into apache:trunk Oct 17, 2026
4 checks passed
@pjfanning
pjfanning deleted the sheet-name-control-char-message branch October 17, 2026 21:29
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.

1 participant