You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're starting development on a new project and are targeting the upcoming Java 11 release. However, although our stub project compiles just fine in Maven, VS Code isn't able to provide intellisense, reports incorrect syntax errors, and fails to launch the project.
When the maven-compiler-plugin's source and target attributes are set from 11 down to 10, however, all the issues go away.
I suspect that whatever is interpreting the Java source/target version doesn't know to look for 11, sees a value it doesn't recognize, and then falls back to targeting the default source/target version (1.5?).
Below, I've attached my Maven POM and the stub class file that won't compile.
Environment
Operating System: Windows 10 Pro (10.0.17134 Build 17134)
JDK version:
java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
Java 11 is not supported at the moment. It requires updates in the upstream Eclipse JDT project for vscode-java to support it. Hopefully we should be able to get a release synchronized with JDK 11 GA (but not guaranteed)
We're starting development on a new project and are targeting the upcoming Java 11 release. However, although our stub project compiles just fine in Maven, VS Code isn't able to provide intellisense, reports incorrect syntax errors, and fails to launch the project.
When the maven-compiler-plugin's source and target attributes are set from
11
down to10
, however, all the issues go away.I suspect that whatever is interpreting the Java source/target version doesn't know to look for
11
, sees a value it doesn't recognize, and then falls back to targeting the default source/target version (1.5?).Below, I've attached my Maven POM and the stub class file that won't compile.
Environment
Steps To Reproduce
pom.xml
src/main/java/com/github/shawmanz32na/java11supportspike/App.java
Current Result
Expected Result
Additional Informations
The text was updated successfully, but these errors were encountered: