Skip to content

Move jtregJdk11 test to jtreg directory.#7606

Open
smillst wants to merge 4 commits intotypetools:masterfrom
smillst:jtreg-tests
Open

Move jtregJdk11 test to jtreg directory.#7606
smillst wants to merge 4 commits intotypetools:masterfrom
smillst:jtreg-tests

Conversation

@smillst
Copy link
Copy Markdown
Member

@smillst smillst commented Apr 1, 2026

No description provided.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 1, 2026

📝 Walkthrough

Walkthrough

The PR removes jtreg JDK 11 test wiring from the Checker project: in subprojects/checker configuration the nonJunitTests task no longer depends on jtregJdk11Tests, the checker/jtregJdk11/TEST.ROOT file was deleted, and the jtregJdk11Tests task was removed from checker/build.gradle. Additionally, a jtreg test Javadoc was updated from --release 8 to --release 9. No public API declarations were changed.

Suggested reviewers

  • msridhar
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@build.gradle`:
- Line 1022: The task definition for jtregJdk11Tests is orphaned and still
references a deleted directory; locate the jtregJdk11Tests task (symbol:
jtregJdk11Tests) in checker/build.gradle and either remove the entire task
definition or retarget it to the consolidated jtregTests path (update any
file/directory references and task configuration to use jtregTests) and adjust
dependencies so nonJunitTests no longer references the removed task; ensure the
public Gradle API has no broken task names after the change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 21c670ea-7959-418f-ac45-b109c45e90cc

📥 Commits

Reviewing files that changed from the base of the PR and between 46be171 and c22d062.

📒 Files selected for processing (4)
  • build.gradle
  • checker/jtreg/Jdk11Release8.java
  • checker/jtreg/issue244/MyDialog.java
  • checker/jtregJdk11/TEST.ROOT
💤 Files with no reviewable changes (1)
  • checker/jtregJdk11/TEST.ROOT

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@checker/jtreg/Jdk11Release9.java`:
- Line 3: The test summary was incorrectly changed to "--release 9" while the
test class and run flags target release 8; revert the summary back to "--release
8" so the header, the run flags (the --release 8 invocation), and the test class
name (Jdk11Release8) all remain consistent. Locate the Jdk11Release9.java header
summary line and replace the text to match "--release 8" (or alternatively
rename the file/class and run flags to 9 if you truly intend a 9-target test),
but prefer reverting the summary to 8 to keep the test stable.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f4bcae0a-2101-4c47-a5c9-e869384e2c90

📥 Commits

Reviewing files that changed from the base of the PR and between c22d062 and 609bed4.

📒 Files selected for processing (1)
  • checker/jtreg/Jdk11Release9.java

/*
* @test
* @summary Test that --release 8 does not cause a crash.
* @summary Test that --release 9 does not cause a crash.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Summary now contradicts the test’s actual release target.

Line 3 says --release 9, but Line 5 and Line 8 still clearly define a release-8 test (--release 8, Jdk11Release8). Please keep these aligned; otherwise the test intent is misleading.

Suggested fix
- * `@summary` Test that --release 9 does not cause a crash.
+ * `@summary` Test that --release 8 does not cause a crash.

Based on learnings: In the Checker Framework repository, when doing refactoring PRs, test files should remain stable and not be changed unless necessary.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* @summary Test that --release 9 does not cause a crash.
* `@summary` Test that --release 8 does not cause a crash.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@checker/jtreg/Jdk11Release9.java` at line 3, The test summary was incorrectly
changed to "--release 9" while the test class and run flags target release 8;
revert the summary back to "--release 8" so the header, the run flags (the
--release 8 invocation), and the test class name (Jdk11Release8) all remain
consistent. Locate the Jdk11Release9.java header summary line and replace the
text to match "--release 8" (or alternatively rename the file/class and run
flags to 9 if you truly intend a 9-target test), but prefer reverting the
summary to 8 to keep the test stable.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@checker/jtreg/Jdk11Release9.java`:
- Line 8: The public class declaration currently uses the name Jdk11Release8
(class Jdk11Release8) which does not match the file name Jdk11Release9.java;
update the class name to Jdk11Release9 (or rename the file to match the class)
so the public class name matches the filename, ensuring the declaration public
class Jdk11Release9 {} replaces the existing class identifier.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 9e06fe7b-7cff-4d15-b04d-3a4c12e908f0

📥 Commits

Reviewing files that changed from the base of the PR and between 609bed4 and a8acdbe.

📒 Files selected for processing (2)
  • checker/build.gradle
  • checker/jtreg/Jdk11Release9.java
💤 Files with no reviewable changes (1)
  • checker/build.gradle

* @compile -processor org.checkerframework.checker.interning.InterningChecker Jdk11Release9.java --release 9
*/

public class Jdk11Release8 {}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Critical: Class name must match filename.

The class name Jdk11Release8 doesn't match the filename Jdk11Release9.java. This will cause a compilation error, as public class names must match their file names in Java.

🐛 Proposed fix
-public class Jdk11Release8 {}
+public class Jdk11Release9 {}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
public class Jdk11Release8 {}
public class Jdk11Release9 {}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@checker/jtreg/Jdk11Release9.java` at line 8, The public class declaration
currently uses the name Jdk11Release8 (class Jdk11Release8) which does not match
the file name Jdk11Release9.java; update the class name to Jdk11Release9 (or
rename the file to match the class) so the public class name matches the
filename, ensuring the declaration public class Jdk11Release9 {} replaces the
existing class identifier.

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