Repository navigation
feat: port Java runtime selection and Maven cache settings - #308
Conversation
- Add `java.jdt.ls.mavenProjectCacheSize` and `java.classpath.variables` settings - Add JavaSE-27 execution environment definition - Suppress AppCDS arguments on Java 26 and above - Skip system JDK discovery when configured tooling JDK is valid - Add regression tests and migration documentation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Startup still performs system JDK discovery despite the stated optimization, and classpath validation accepts malformed variable names.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Ports upstream Java runtime, Maven cache, classpath-variable, and AppCDS updates, with migration records and contract tests.
Changes:
- Adds JavaSE-27, classpath variables, and Maven cache configuration.
- Updates JDK discovery and AppCDS behavior.
- Expands tests and migration documentation.
| File | Description |
|---|---|
AGENTS.md |
Adds task-branch delivery guidance. |
migrate.md |
Records migration scope and validation. |
package.json |
Adds settings and JavaSE-27. |
src/javaServerStarter.ts |
Adds cache and AppCDS handling. |
src/requirements.ts |
Defers one system JDK scan. |
src/settings.ts |
Restarts for cache-size changes. |
sync-history.md |
Summarizes upstream maintenance. |
test/contracts.test.ts |
Adds regression contracts. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Anchor classpath variable validation and preserve explicit project runtimes, current settings, selected importers, and client lifecycle during background JDK discovery. Add regression coverage and record cloud validation.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |

Adds Maven project-cache sizing, classpath variables and JavaSE-27 support, and adapts upstream tooling-JDK selection and AppCDS behavior while preserving Coc's existing transport and binary-resolution contracts.
Independent Codex review checked the complete source/configuration/test change at 26d9914 and TypeScript checks passed. The existing migration ledger records passing Neovim contracts and JDT integration, plus Vim interaction failures also reproduced on the baseline; those failures are not claimed as passing.
Review fixes and latest verification
At 1f81361, classpath variable validation is anchored and JDK discovery is deferred until client readiness while preserving explicit runtime/importer settings. Seven new regressions were added. Exact-head CI passed contracts40/40, real JDT integration8/8, build, and type checking: https://github.com/neoclide/coc-java/actions/runs/37118264688 . Local environment-only failures reproduced on the prior head and did not occur in CI. Latest GitHub Codex review of 1f81361 completed without major findings. Further Copilot requests are paused following its quota response.