Skip to content

AnnotationOverlayImpl#annotation does not detect Object properly when searching for inherited annotations #497

@manovotn

Description

@manovotn

I originally encountered this with Quarkus and CDI BCE extensions observing Object type, not sure how common it would be otherwise.

The code in AnnotationOverlayImpl#annotation attempts to search for inherited annotations in super classes of given Declaration even if it is already Object type. This can lead to unexpected calls to IndexView#getClassByName() with null as parameter.

The code I am describing is here - https://github.com/smallrye/jandex/blob/main/core/src/main/java/org/jboss/jandex/AnnotationOverlayImpl.java#L135

I'll send a PR momentarily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions