Skip to content
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

Should not enable preview compiler options if the tooling doesn't support the early access JDK #1644

Closed
testforstephen opened this issue Jan 18, 2021 · 0 comments · Fixed by #1645
Assignees

Comments

@testforstephen
Copy link
Contributor

As the title says, see Steps to Reproduce below.

Environment
  • Operating System: Windows 10
  • JDK version: 16
  • Visual Studio Code version: 1.53.0-insider
  • Java extension version: 0.73.0
  • Java Debugger extension version: 0.30.0
Steps To Reproduce
  1. Set java.home to jdk 16.
  2. Open a Java folder without build tool.
    latestProject.zip
  3. click Run on the main method in the App.java.
Current Result

image

The Java folder was compiled to java 15 preview (59.65535), which cannot be run by jdk 16.

Expected Result

Should not enable preview compiler options if the language server doesn't support the corresponding early access jdk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant