redhat-developer / redhat-developer/vscode-java

Disable automatic addition of --enable-preview flag

未关闭
#1,688 4 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

compile preferences ux
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

[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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

复现针对 JDK 14 描述的独立 Java 编译场景,并使用 JDK 15 运行生成的类。检查 vscode-java 的编译路径,找出添加 --enable-preview 的位置;完成标准是该 flag 不再自动添加,并且该行为由适当的测试覆盖。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
build-system, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
32/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。