apache / apache/netbeans

[VSCode extension] NetBeans gives errors because `java.base` is not read

Open
#5,150 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage VSCode Extension
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 16

### What happened

NetBeans gives errors because my module is said not to read `java.base`, which is odd, because every module reads `java.base` implicitly:

![image](https://user-images.githubusercontent.com/15714253/209520237-cc75e490-7746-45f9-97d4-81b8d474d9d2.png)

### How to reproduce

I created a new Maven project based on an archetype and added a class to it.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 11

### JDK

openjdk full version "20-ea+22-1594"

### Apache NetBeans packaging

Apache VSNetBeans for VSCode

### Anything else

_No response_

### Are you willing to submit a pull request?

Yes

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with Apache NetBeans 16, the Apache VSNetBeans for VSCode extension, a Maven project from an archetype, and the supplied OpenJDK 20 early-access version. Investigate why the new class is reported as not reading java.base; done means the erroneous diagnostic no longer appears for a module that implicitly reads java.base.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.