redhat-developer / redhat-developer/vscode-java
Feature request: Provide a way to specify -source and -target for javac with VScode
未关闭
还没有人认领这个 Issue。
classpath
enhancement
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
[provide a description of the issue]
Environment
- Operating System: MacOS,
- JDK version: Java 11
- Visual Studio Code version: Version 1.35.1 (1.35.1)
- Java extension version: Language Support for Java(tm) 0.46.0
Steps To Reproduce
Allow VScode to build a project. JDK11 is installed and found on path, and is used for builds. Classes generated have class target 55.0
I want to have them generated with target version 52.0 (Java 1.8)
That is, I'd like to be able to pass -source and/or -target to the invocation of javac (or logical equivalent) Could not find any setting or configuration or documentation.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件或测试。首先定位 VS Code Java extension 的 javac 构建调用,以及其中关于编译器选项的配置或文档。完成的标准是用户可以指定 -source 和/或 -target,并且使用 JDK 11 构建的项目会生成所请求的 Java 8 目标,而不是 class target 55.0。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- build-system, developer-experience
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100