JandexHelper.getValue() returns Boolean instead of boolean, causing ClassCastException

Description

In JandexHelper the method public static <T> T getValue(AnnotationInstance annotation, String element, Class<T> type) calls annotation.value( element );

This returns a Boolean if the annotation value is actually a boolean. The following type.cast() fails.

As far as I can tell, this only affects reading the @Converter(autoApply) annotation in the current codebase. Reproduce by adding an @Converter annotated class to the persistence unit, e.g.

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Christian Bauer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure