Skip to content

Expect a joined detail message in commentAfterOpeningDelimiter-assert - #178

Merged
abashev merged 1 commit into
21.X.Xfrom
fix/assert-case-joined-literals
Oct 31, 2026
Merged

abashev merged 1 commit into
21.X.Xfrom
fix/assert-case-joined-literals

Conversation

@abashev

@abashev abashev commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

What

commentAfterOpeningDelimiter-assert.case came with #175. Its last assert ends in the detail message "x below " + "y": two string literals on one line with no comment between them. #176 joins such literals, so the formatter now writes "x below y", and since both were merged every build job of 21.X.X fails on that case (run 41197372203). Each PR had passed on its own: the head of #176 did not contain #175.

The fix

The expected output now has the joined literal, as #176 did for the cases of NON-NLS and palantir-10. The input keeps the two literals.

Tests

On JDK 21, ./gradlew test --rerun is green: FormatterCasesTest 915 cases, 1482 tests in all modules, 14 skipped.

The case came with #175 and ends in the detail message "x below " +
"y": two string literals on one line with no comment between them.
#176 joins such literals, so the formatter now writes "x below y", and
since both were merged every build job of 21.X.X fails on that line.
Each had passed on its own, because #176 was tested without the case.

The expected output now has the joined literal, as #176 did for the
cases of NON-NLS and palantir-10; the input keeps the two literals.

Tests on JDK 21: FormatterCasesTest 915 cases, 1482 tests in all
modules, none failing.
@abashev
abashev merged commit 336a286 into 21.X.X Oct 31, 2026
17 checks passed
@abashev
abashev deleted the fix/assert-case-joined-literals branch October 31, 2026 19:46
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