From f7b15cc4415a6703f0c2b85f206c89886a5e3d16 Mon Sep 17 00:00:00 2001 From: Falko Modler Date: Mon, 14 Jun 2021 10:14:26 +0200 Subject: [PATCH] Fix 'Failed to index' warnings for arrays from entities --- .../quarkus/hibernate/orm/deployment/JpaJandexScavenger.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java index f8eb837c6c79d..5ffb793777de6 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java @@ -350,7 +350,8 @@ private void addClassHierarchyToReflectiveList(Collector collector, DotName clas // we need to check for enums for (FieldInfo fieldInfo : classInfo.fields()) { Type fieldType = fieldInfo.type(); - if (Type.Kind.PRIMITIVE == fieldType.kind()) { + if (Type.Kind.CLASS != fieldType.kind()) { + // skip primitives and arrays continue; } DotName fieldClassName = fieldInfo.type().name();