Skip to content

ElementImpl#getOwnedAnnotation doesn't work as expected #2226

@gdaniel

Description

@gdaniel

This seems to be related to filter(annotation -> this.equals(annotation.getAnnotatedElement())), where annotation.getAnnotatedElement always returns null.
To retrieve all the annotations of an element, one should still iterate over Element#getOwnedRelationship() instead of getOwnedAnnotation.

This change has been introduced in #2034

This issue seems to be linked to an ongoing issue in the KerML specification.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions