From 176588668f052ef7053603aa49e871b8d7cc34ee Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 26 Feb 2025 15:49:01 +0100 Subject: [PATCH] [jOOQ/jOOQ#18059] Fix regression --- jOOQ/src/main/java/org/jooq/impl/Convert.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/Convert.java b/jOOQ/src/main/java/org/jooq/impl/Convert.java index 651c17e511..c9b8b76c1b 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Convert.java +++ b/jOOQ/src/main/java/org/jooq/impl/Convert.java @@ -498,15 +498,14 @@ final class Convert { Class ct1 = c1.getComponentType(); Class ct2 = c2.getComponentType(); - if (ct1 == null && ct2 == null) + // [#18059] The check isn't symmetric as we'll wrap only the right type + if (ct1 == null) return true; // [#18059] binary data of type byte[] is not considered an array type - else if (ct1 == null && ct2 == byte.class) - return true; else if (ct2 == null && ct1 == byte.class) return true; - else if (ct1 == null || ct2 == null) + else if (ct2 == null) return false; else return equalArrayDegree(ct1, ct2);