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

JDT is getting confused when coding inside a lambda

Open
#3,787 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

I'm using latest 2024-12 with JDK 21, to develop Mutiny's base code for Quarkus.

I'm getting problems with completion and compiler when coding inside a lambda. sometimes I need to copy and paste the code out of the lambda to get completion working...

```
return Uni.createFrom().item(() -> {

String jobName = getS <----- here I'm trying to do a space+bar to get the name of an existent method on the same class (but since the compiler identified that the code is broken it doesn't show anything.
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported completion and compiler behavior with the provided lambda snippet in JDT 2024-12 on JDK 21, comparing coding inside and outside the lambda. Done means completion can find the existing method inside the lambda and the compiler no longer treats the code as broken in this case.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.