redhat-developer / redhat-developer/vscode-java

Disable automatic addition of --enable-preview flag

Open
#1,688 4 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

compile preferences ux
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
  1. Compile hello world using jdk 14
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.