Disable automatic addition of --enable-preview flag
[provide a description of the issue]
Hi,
Usage of --enable-preview flag during compilation of stand along java file inhabits backward compatibility of generated class file.
It will be more useful if adding this option is left to the user instead of tool automatically adding it.
Thanks
Environment
- Operating System: any
- JDK version: 14
- Visual Studio Code version:
- Java extension version: .49
Steps To Reproduce
- Compile hello world using jdk 14
- Run generate class file in jdk 15
[Please attach a sample project reproducing the error] Please attach logs
Current Result
Expected Result
Additional Informations
If you're referring to standalone java files, the generated .class is not exposed to users, so how do you run it?
Maybe related to this issue, VS Code also has started littering our .settings/org.eclipse.jdt.core.prefs files with the following unwelcome addition:
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
VS Code adds these settings even if we set enablePreviewFeatures=disabled first. There appears to be no way to disable the preview features.
So.. how exactly can it be disabled for single files?
Same here ! I have to uncheck it everytime for my project to work.