-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--enable-preview is included when it shouldn't #933
Comments
This is what I get when I reproduce these steps. The debugger is just following your project's compliance level to determine whether to append "--enable-preview" flag. The root cause is that Java Language Support detects that your jdk is the latest version and then enables the preview flag when compiling your project, but Java Language Support currently only supports java 15, so the compiled class version is 59.65535 (jdk 15 preview). Using jdk 16 can not run jdk 15 preview classes. You have to open an issue at vscode-java, tell it's compiler not to enable preview features when the user is using a not supported higher jdk. |
here is the upstream issue eclipse-jdtls/eclipse.jdt.ls#1644 |
As the title says, see Steps to Reproduce below.
Environment
Steps To Reproduce
Run
on the main method in the generatedApp.java
Current Result
The following command is launched:
which fails with a LinkageError.
Expected Result
The same, but without
--enable-preview
in the command, so that the Java program would run.Additional Informations
The text was updated successfully, but these errors were encountered: