redhat-developer / redhat-developer/vscode-java
The package java.util.concurrent is accessible from more than one module: <unnamed>, java.base
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
[provide a description of the issue]
Environment
- Operating System: Win11
- JDK version: openjdk 11.0.19 2023-04-18
- Visual Studio Code version: 1.85.2
- Java extension version: 1.28.1
Steps To Reproduce
- [step 1]
there are .classpath and .project file in my project, just open this project. - [step 2]
then I get following issues
The package java.net is accessible from more than one module: , java.base
The package java.util is accessible from more than one module: , java.base
The package java.io is accessible from more than one module: , java.base
Since this project code is confidential, so I can not provide any logs or source code.
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Expected Result
Additional Informations
if I set java.jdt.ls.java.home to jdk8, the issue disappeared.
I have already searched other similar issues in jdt.ls github web site, it seems that this issue has been fixed, but on myside issue still exist.
Also I get another issue "The declared package "com.android.car.camera.dvr" does not match the expected package "src.com.android.car.camera.dvr", is there any way to disable this notification?
If I use andriod stutio, all above issues disappeared. I want to use vscode,remote-ssh,redhat.java stronglly because it's very convenience for me.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查项目的 .classpath 和 .project 文件,并使用 JDK 11、VS Code 1.85.2 和 Java 扩展 1.28.1 重现诊断信息。将其行为与 JDK 8 进行比较,并收集日志或最小示例项目;完成标准是确定 java.base 中的包为何重复,以及是否可以配置 package-path 通知。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100