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
In my VSCode, I had installed the extension Language Support for Java(TM) by Red Hat pre-release version, and my Spring Boot project is using Java 21 so in one of my business logic code I want to use String Templates to concatenate Strings together
in the above image in VSCode it show syntax error when using Template processor STR.
Description
Here is my PC environment info:
Java: Temurin-21.0.5+11 (build 21.0.5+11-LTS)
Maven: Apache Maven 3.9.9
PC:
VSCode extension version
Language Support for Java(TM) by Red Hat v1.39.2025011708 (pre-release)
The text was updated successfully, but these errors were encountered:
Each version of vscode-java can only support the latest set of preview feature. For example, if we support the language preview features for Java 23 (if any), while you can certainly set your target to Java 21, or even 22, you can't also enabled preview features from those releases. Only from the latest one. Normally that would be fine because the feature would be finalized in a later release, but in this case it has been removed, so the result is it's no longer supported.
If you really wanted to work with string templates, you could try vscode-java 1.34.0 as that was the last version to still support Java 22 preview features, which would have included String Templates.
Each version of vscode-java can only support the latest set of preview feature. For example, if we support the language preview features for Java 23 (if any), while you can certainly set your target to Java 21, or even 22, you can't also enabled preview features from those releases. Only from the latest one. Normally that would be fine because the feature would be finalized in a later release, but in this case it has been removed, so the result is it's no longer supported.
If you really wanted to work with string templates, you could try vscode-java 1.34.0 as that was the last version to still support Java 22 preview features, which would have included String Templates.
ohh sad to hear Java removed it, hope it will comeback soon
Issue
In my VSCode, I had installed the extension Language Support for Java(TM) by Red Hat pre-release version, and my Spring Boot project is using Java 21 so in one of my business logic code I want to use String Templates to concatenate Strings together
in the above image in VSCode it show syntax error when using Template processor STR.
Description
Here is my PC environment info:
Language Support for Java(TM) by Red Hat v1.39.2025011708 (pre-release)
The text was updated successfully, but these errors were encountered: