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

missing pieces in the AST: parser seems to skip annotation attributes after a missing value

Open
#3,419 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

Similar to #3155, I am working on code completion based on AST nodes and came across this case for a type declaration:

```
@ConditionalOnProperty(prefix = , name = "")
```

The resulting AST does not contain any information about the `name` attribute anymore. It just gets removed from the AST, where the annotation on the type declaration looks like:

```
@ConditionalOnProperty(prefix=$missing$)
```

(using `org.eclipse.jdt.core` version 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.