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

Implementation of javax.lang.model.util.Elements#getTypeElement(String) returns TypeElement with empty metadata

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

Description

On annotation proccesing, if try to extract `TypeElement` using `javax.lang.model.util.Elements.getTypeElement(String)` it will return:

- type element **_with_** metadata (in case type element **_is_** included in the current round environment)
- type element **_without_** metadata (in case type element **_is not_** included in the current round environment)

By saying metadata I mean at least related annotation mirrors, i.e. if you try to extract annotation mirrors by calling `javax.lang.model.element.Element.getAnnotationMirrors()` it will return an empty array.

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.