镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Check JDK for javac - #4368

Closed
snjeza wants to merge 1 commit into
redhat-developer:mainfrom
snjeza:checkjavac
Closed

snjeza wants to merge 1 commit into
redhat-developer:mainfrom
snjeza:checkjavac

Conversation

@snjeza

@snjeza snjeza commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

@fbricon

fbricon commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

so it turns out we don't actually need to enforce a jdk 26 requirement for the javac plugin, it's only required if the user needs to compile against java 26. Which will most likely not be the case for a majority of users. I think we should keep this PR on the backburner for now.

Comment thread src/requirements.ts
const preferenceName = javaPreferences.preference;
let javaHome = javaPreferences.javaHome;
let javaVersion: number = 0;
const REQUIRED_JDK_VERSION = ('on' === getJavaConfiguration().get('jdt.ls.javac.enabled'))?25:21;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note: this line was already deleted in #4513.

#4548 😢

@robstryker

Copy link
Copy Markdown
Contributor

This PR changes the import, but it doesn't seem to change which file is looked for elsewhere.
We also don't need to change the java version to 26 at this time.

@datho7561 Maybe close this?

@datho7561

Copy link
Copy Markdown
Contributor

Given we're dropping the javac plugin, let's close this

@datho7561 datho7561 closed this Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants