Skip to content

Issue #19188: fix compilation comments to Java25 and add CI check for noncompilable inputs#19564

Merged
romani merged 1 commit into
checkstyle:masterfrom
ayushactiveat:issue-19188-fix-compilation-comments
Apr 2, 2026
Merged

Issue #19188: fix compilation comments to Java25 and add CI check for noncompilable inputs#19564
romani merged 1 commit into
checkstyle:masterfrom
ayushactiveat:issue-19188-fix-compilation-comments

Conversation

@ayushactiveat

@ayushactiveat ayushactiveat commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #19551, fixes #19188

-> changed // non-compiled with javac: Compilable with Java21 to
// non-compiled with javac: Compilable with Java25 in 16 xdocs example files
-> removed --enable-preview flag from all javac jobs (17, 19, 20, 21, 22, 25)
in .ci/validation.sh

@ayushactiveat

ayushactiveat commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

@romani let me know if any other change needed

@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.

Items

Comment thread .ci/validation.sh Outdated
;;

check-no-java21-noncompilable)
files=($(grep -Rli --include='*.java' ': Compilable with Java21' \

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.

I don't think we need this.

Can you update javac --release 21 --enable-preview

To remove preview flag.

We don't support previews at all, no preview anymore.
We can remove such flag from all javac jobs

@ayushactiveat ayushactiveat force-pushed the issue-19188-fix-compilation-comments branch from 542784e to f8b8752 Compare April 2, 2026 09:41
@ayushactiveat

ayushactiveat commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

@romani done, let me know if any other change needed

@stoyanK7 stoyanK7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good 👍


In response to #19551 (comment)

hi @stoyanK7 , thanks for the review, i've addressed both your points, please let me know if u still face the error, or if there any else change needed

I've tested the following flow:

  1. Clone Checkstyle
  2. ./mvnw clean install
  3. Open in IntelliJ IDEA
  4. Run SuppressWithNearbyTextFilterTest via the IDE Run Tests button

Tests executed with no compilation errors. So starting development should now be smoother

@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.

Thanks a lot

@romani romani merged commit 14c103a into checkstyle:master Apr 2, 2026
123 checks passed
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.

Move Intputs to non-compiled folders to let Idea to run test without compilation error

3 participants