Skip to content

Issue #17052: Flexible constructor bodies support#19364

Merged
romani merged 1 commit into
checkstyle:masterfrom
aclfe:flexible
May 15, 2026
Merged

Issue #17052: Flexible constructor bodies support#19364
romani merged 1 commit into
checkstyle:masterfrom
aclfe:flexible

Conversation

@aclfe

@aclfe aclfe commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

Issue #17052: Flexible constructor bodies support

Fixes #17052 and #19342. Both are similar in nature and are fixed by code changes.

#19342 test case src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java25/InputFlexibleConstructorBodyWithRecord.java

is faithfully reproduced and causes no issues.

@aclfe

aclfe commented Mar 21, 2026

Copy link
Copy Markdown
Contributor Author

Added InputFlexibleConstructorBodyWithRecord file for addressing #19342

@aclfe aclfe mentioned this pull request Mar 21, 2026
@aclfe aclfe force-pushed the flexible branch 2 times, most recently from 5716679 to b46640f Compare March 21, 2026 14:25
@aclfe

aclfe commented Mar 21, 2026

Copy link
Copy Markdown
Contributor Author

@aclfe

aclfe commented Mar 21, 2026

Copy link
Copy Markdown
Contributor Author

Ci failure is flaky, not related to code changes

@aclfe

aclfe commented Mar 21, 2026

Copy link
Copy Markdown
Contributor Author

@stoyanK7 @mohitsatr

@romani

romani commented May 13, 2026

Copy link
Copy Markdown
Member

@mahfouz72 , @vivek-0509 , please evaluate this achievement

@mahfouz72 mahfouz72 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Report lgtm no grammar regression
Items:

@mahfouz72

Copy link
Copy Markdown
Member

@romani We have another PR for the same issue: checkstyle/checkstyle#18821. However, I think this PR is closer to being merged since we already have the diff report.

@aclfe aclfe force-pushed the flexible branch 3 times, most recently from eece899 to f2e4d32 Compare May 14, 2026 14:03
@aclfe

aclfe commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

@mahfouz72 Made all changes. Failures in test are not code induced

@mahfouz72 mahfouz72 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

items

Comment thread config/projects-to-test/openjdk25-excluded.files Outdated
Comment thread config/projects-to-test/openjdk25-excluded.files
@aclfe aclfe force-pushed the flexible branch 2 times, most recently from a59e027 to d2bde2c Compare May 15, 2026 12:17

@mahfouz72 mahfouz72 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Single commit please

@mahfouz72 mahfouz72 assigned romani and unassigned mahfouz72 May 15, 2026
@aclfe

aclfe commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

Thanks a lot!

Single commit please

Oh I messed that up from reverting some things. Thanks for reviewing the PR!

@romani

romani commented May 15, 2026

Copy link
Copy Markdown
Member

@vivek-0509 , please review.

@romani romani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done cleanly, nothing to improve.

@vivek-0509 vivek-0509 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romani LGTM

@romani romani merged commit 8916949 into checkstyle:master May 15, 2026
126 checks passed
@aclfe

aclfe commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

Thank you everyone for the hardwork!

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.

Add support for flexible constructor bodies (JEP 513) targeted for JDK25

4 participants