[jOOQ/jOOQ#17993] ArrayStoreException when using Converters::forArrayComponents
This commit is contained in:
parent
0471d2db4e
commit
292aa9eb75
@ -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];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user