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

parser adds `$missing$` with wrong start position

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

Description

As a follow-up from https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3156:

For:

```
@Value(spring.) private String value1;
```

The fix for #3156 works, the `spring.` stay within the AST and a `SimpleName` node is added for the `$missing$` part behind the `.`. But the start position of the `$missing$` node is the same as the start position for the `QualifiedNode` and the same for the `SimpleNode` for `spring`.

I think the start position for the `$missing$` node should be right after the `.`.

(using `org.eclipse.jdt.core` 3.40.0)

(FYI: @mickaelistria and @stephan-herrmann)

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.