eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Incorrect hover on var inside {@snippet} shows Corext instead of Javadoc

Open
#2,914 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
59
Forks
127
Avg merge
23h 30m
Merged PRs (30d)
35

Description

Image
Consider the below snippet.

```
/// {@snippet :
/// var s = 3;
/// }
public class Example {
}
```

Mouse hover or place the curser over **var** showing unwanted Corext messages. It should display the javadoc instead. Issue exists in both javadoc and markdown.

Contributor guide

Open the contributing guide

Research direction

Reproduce the supplied {@snippet} example and place the cursor over var in both the Javadoc and Markdown paths. Trace the hover behavior for that snippet; done means the hover displays the expected Javadoc information instead of the unwanted Corext message.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.