Align tooling JDK validation and guidance with redhat.java 1.57.0 (JDK 25+)
維護者通常 1 天內回覆
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- java, typescript, vscode
研究方向
Start with src/java-runtime/utils/upstreamApi.ts, src/java-runtime/assets/ToolingJDKPanel.tsx, and src/beginner-tips/assets/tabs/FaqPanel.tsx, then compare the runtime-selection behavior with the linked redhat.java resolver. Check existing tests for runtime validation and UI guidance. Done means readiness, displayed runtime information, and guidance consistently reflect the language server's JDK 25 minimum while preserving older project targets and compatibility with older extension versions.
由索引模型根據 Issue 內容生成。
描述
Summary
Align Java Pack's runtime validation, Configure Java Runtime UI, and beginner guidance with the JDK requirements and runtime-selection behavior of redhat.java 1.57.0.
The release adds Java 27 project support and requires JDK 25 or newer to launch the language server. These are different requirements: projects must not be forced to target Java 25 or Java 27.
Current behavior
Verified against Java Pack main at 0823dbde1947de111c39890fc095f55c0ff0d258:
- The runtime resolver still uses
REQUIRED_JDK_VERSION = 17. - The tooling JDK panel independently hard-codes the same minimum.
- The beginner FAQ also independently hard-codes 17.
- Java Pack's resolver is an older copy of the upstream resolution logic. It can treat an explicitly configured, under-minimum tooling JDK as valid, whereas the new language support extension rejects it for tooling and attempts to select a qualified runtime.
In contrast, the current language support resolver requires 25 and includes fallback handling for under-minimum configured runtimes.
This can make Java Pack's readiness checks and displayed tooling JDK disagree with the runtime that actually launches the language server. This report is based on source inspection; it is not a claim that every Java 27 project fails to launch.
Proposed scope
- Align tooling-runtime validation and selection with the installed language support extension's supported requirements, including explicit settings, bundled runtimes, and fallback discovery.
- Update all related UI and FAQ messages together, avoiding contradictory independently maintained minimums.
- Keep the tooling runtime separate from project runtimes. Older project targets must continue to work.
- Do not add a separate hard-coded Java 27 compiler-level list: the project settings UI already obtains supported levels from
redhat.java's runtime configuration schema.
Acceptance criteria
- With
redhat.java1.57.0, tooling readiness never reports an external JDK 17-24 as satisfying the language server's JDK 25 minimum. - When an under-minimum explicit tooling JDK is configured, displayed runtime/error information agrees with the language support extension's selection and fallback behavior.
- A valid bundled JDK 25 is recognized without requiring a separate JDK 27 installation just to launch the language server.
- JDK 25 and JDK 27 tooling installations are recognized correctly; supported older project runtimes remain configurable.
- Configure Java Runtime, the tooling JDK panel, and the FAQ present consistent requirements.
- Existing supported combinations with older
redhat.javaversions are considered when choosing how to obtain or version the minimum requirement.
Related
- Historical runtime-alignment work: microsoft/vscode-java-pack#787, which is closed and predates this new requirement.
- Language support release: vscode-java 1.57.0 changelog.
- 主要語言
- TypeScript
- 星號
- 355
- 分支
- 165
- 平均合併
- 12 小時 36 分鐘
- 30 天內合併 PR
- 9
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/vscode-java-pack 的其他 Issue
-
Offer non-LTS and opt-in early-access JDKs in Install New JDK (Java 27)可能已有人在做 @chagong 於 4 天前認領。 未關閉ai-triaged enhancement
microsoft/vscode-java-pack#1766 · 1 則留言 · 1 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
-
ai-triaged bug
難度 4/5 3-5 天 新手友好度 42/100
microsoft/vscode-java-pack#1543 · 8 則留言 · 4 個 reaction ·
維護者通常 1 天內回覆
-
ai-triaged bug
難度 3/5 1-2 天 新手友好度 35/100
microsoft/vscode-java-pack#1443 · 1 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
ai-triaged bug
難度 3/5 1-2 天 新手友好度 45/100
microsoft/vscode-java-pack#1425 · 1 則留言 ·
維護者通常 1 天內回覆
-
ai-triaged enhancement feature-request
難度 5/5 一週以上 新手友好度 20/100
microsoft/vscode-java-pack#1423 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 microsoft/vscode-java-pack 的全部 Issue
相似的 Issue
-
nextjs-tracking
難度 2/5 1-3 小時 新手友好度 74/100
cloudflare/vinext#3887 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
apache/rocketmq-dashboard#6331 ·
維護者通常 5 天內回覆
-
bug cache clinical-safety P1-critical
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
juspay/blend-design-system#1788 ·
維護者通常 1 天內回覆
-
[Analytics] Add Focus Time-Block Efficiency Ratio Calculator in src/lib/focus/efficiency-ratio.ts未關閉analytics beginner friendly community contributions-welcome enhancement good first issue hacktoberfest help wanted up-for-grabs
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆