Mapping arrays of primitive types (int[]/float[]/etc.) leads to ClassCastException upon indexing

Description

Relevant Search 5 test: org.hibernate.search.test.bridge.ArrayBridgeTest

Currently we mistake int[] for Integer[] at bootstrap, leading to a ClassCastException at runtime when we try to cast int[] to Object[].

There is probably a problem in the reflection code, and also we should probably introduce dedicated default container extractors for arrays of primitive types.

Also, obviously, some tests are missing.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure