This commit is contained in:
Lukas Eder 2025-02-26 15:49:01 +01:00
parent e627069338
commit 176588668f

View File

@ -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);