eclipse-jdt / eclipse-jdt/eclipse.jdt.core

[Completion] No proposals while trying to generate a stub main method

Open
#3,170 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

```
public class X {
// As of Java 21
record R(int i) {
public int i() { // bad (but legal) accessor method for i
return i / 0;
}
}

static void exampleAnR(R r) {
switch(r) {
case R(var i): System.out.println(i);
}
}

main| // <<-------------------------- Completion here brings up nothing.


}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.