JUnit5TestLoader fails with NoSuchMethodError on CollectionUtils.forEachInReverseOrder #78
Labels
No labels
bug
build
enhancement
headless
P1-critical
P2-high
P3-medium
P4-low
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-tools/jdt-mcp-server#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Report
Problem
When running tests via
jdt_run_tests, the JUnit5 test loader fails to initialize. All test runs end with a TIMEOUT.Error
Root Cause
Version mismatch between
junit-platform-launcherandjunit-platform-commons. The methodCollectionUtils.forEachInReverseOrder(List, Consumer)was added in a newer version ofjunit-platform-commons, but the JDT Eclipse runtime bundles an older version.Impact
jdt_run_testscalls fail — the test loader cannot initializemvn test) as a workaroundEnvironment
Suggested Fix
Ensure
junit-platform-commonsversion used at runtime matches the project's classpath version (fromspring-boot-starter-test), not the JDT-bundled version.