Skip to content

Issue #17052: Fix CI failures for Flexible constructor bodies#18821

Closed
vad0 wants to merge 1 commit into
checkstyle:masterfrom
vad0:flexible-ctor-body-fix
Closed

Issue #17052: Fix CI failures for Flexible constructor bodies#18821
vad0 wants to merge 1 commit into
checkstyle:masterfrom
vad0:flexible-ctor-body-fix

Conversation

@vad0

@vad0 vad0 commented Feb 1, 2026

Copy link
Copy Markdown

Summary

  • Fix javac17_standard CI failure by changing comment pattern in test files from // non-compiled with javac: to // Java25
  • Regenerate ExpectedFlexibleConstructorBody.txt with correct column positions after rebasing onto master

This PR builds on #17982 by rebasing onto current master and fixing the CI failures.

Changes

  • InputFlexibleConstructorBodyWithNestedClass.java - Changed comment to prevent javac17 compilation
  • InputFlexibleConstructorBodyWithReturn.java - Changed comment to prevent javac17 compilation
  • ExpectedFlexibleConstructorBody.txt - Regenerated with correct 1-based column positions

Test plan

  • Java25AstRegressionTest passes (3 tests)
  • JavaAstVisitorTest passes (5 tests)
  • IndentationCheckTest passes (194 tests)
  • Grammar-related tests pass (648 tests total)

Resolves #17052

🤖 Generated with Claude Code

@vad0 vad0 force-pushed the flexible-ctor-body-fix branch 2 times, most recently from 95e8688 to bfc7879 Compare February 1, 2026 15:42
@romani

romani commented Feb 3, 2026

Copy link
Copy Markdown
Member

@mahfouz72 , please review this PR.

Hint: our grammar can be more relaxed than java grammar, we always executed on fully compiled sources.

@romani

romani commented Apr 14, 2026

Copy link
Copy Markdown
Member

Single commit please

@vad0 vad0 force-pushed the flexible-ctor-body-fix branch from ba56d1b to bce381d Compare April 19, 2026 13:55
@romani

romani commented Apr 19, 2026

Copy link
Copy Markdown
Member

please follow CI, extra fix is required.

@vad0 vad0 force-pushed the flexible-ctor-body-fix branch from fef4414 to f7c97ba Compare April 20, 2026 09:57
@vad0

vad0 commented Apr 22, 2026

Copy link
Copy Markdown
Author

will it be merged?

@vad0

vad0 commented May 2, 2026

Copy link
Copy Markdown
Author

@romani

romani commented May 2, 2026

Copy link
Copy Markdown
Member

@mahfouz72 , @vivek-0509 , please review.

@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!
items:

@@ -0,0 +1,69 @@
// Java25

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.

This file will not be picked up by the javac25 job. please change

Suggested change
// Java25
// non-compiled with javac: Compilable with Java25

https://github.com/stoyanK7/checkstyle/blob/b5ebe7d390913b1d6101cdcde0493909b970b904/.ci/validation.sh#L653-L654

</module>

<!-- until https://github.com/checkstyle/checkstyle/issues/17052 -->
<module name="BeforeExecutionExclusionFileFilter">

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.

We should remove the exclusions now, not the comment only. Please do so that the no-exception-openjdk25 picks those files in the next runs.

@mahfouz72

Copy link
Copy Markdown
Member

@romani

romani commented May 15, 2026

Copy link
Copy Markdown
Member

@vad0 , thanks a lot for your PR we used it , but merged more complete version at
#19364

@romani romani closed this May 15, 2026
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

3 participants