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

[Completion][Switch] No completion inside switch inside lambda

Open
#4,097 0 comments 0 reactions 1 assignee Claimed by @srikanth-sankaran View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

No completion proposals offered at | below:

```
import java.util.concurrent.Callable;

public class X {

static void foo(Runnable r) {
System.out.println("Runnable");
}

static void foo(Callable task) {
System.out.println("Callable");
}

public static void main(String [] args) {
foo(() -> {
switch(args.length) {
case 0 -> throw new NullPo|
}
}
);
}
}

```

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.