[jOOQ/jOOQ#17993] ArrayStoreException when using Converters::forArrayComponents

This commit is contained in:
Lukas Eder 2025-02-11 10:45:51 +01:00
parent 0471d2db4e
commit 292aa9eb75

View File

@ -80,7 +80,7 @@ final class ArrayComponentConverter<T, U> extends AbstractContextConverter<T, U>
if (u == null)
return null;
U[] a = (U[]) Array.newInstance(fromType(), 1);
U[] a = (U[]) Array.newInstance(toType(), 1);
a[0] = u;
return converter.to(a, scope)[0];
}