redhat-developer / redhat-developer/vscode-java
The package java.util.concurrent is accessible from more than one module: <unnamed>, java.base
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]
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.
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
Start by inspecting the project's .classpath and .project files and reproducing the diagnostics with JDK 11, VS Code 1.85.2, and Java extension 1.28.1. Compare behavior with JDK 8 and collect logs or a minimal sample project; done requires determining why java.base packages are duplicated and whether the package-path notification can be configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100