redhat-developer / redhat-developer/vscode-java
Disable automatic addition of --enable-preview flag
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
[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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the standalone Java compilation scenario described for JDK 14 and running the generated class with JDK 15. Inspect the vscode-java compilation path to find where --enable-preview is added; done means the flag is no longer added automatically and the behavior is covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100