From 5676433ed0e08b3a81f90421d0bddfda191bbaaa Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 25 Nov 2025 21:32:46 -0600 Subject: [PATCH] io/object/DataTypes.java: isComplexType uses type >= CORE_ARRAY || type <= CORE_OBJECT, which incorrectly returns true for nearly all types; basic types are misclassified as complex, leading to incorrect serialization/deserialization flow for most values. Change || to && --- io/src/main/java/org/red5/io/object/DataTypes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/src/main/java/org/red5/io/object/DataTypes.java b/io/src/main/java/org/red5/io/object/DataTypes.java index 8ae5f76f3..352e24584 100644 --- a/io/src/main/java/org/red5/io/object/DataTypes.java +++ b/io/src/main/java/org/red5/io/object/DataTypes.java @@ -207,7 +207,7 @@ public static boolean isBasicType(byte type) { * @return boolean true if data type is complex (non-primitive), false otherwise */ public static boolean isComplexType(byte type) { - return type >= CORE_ARRAY || type <= CORE_OBJECT; + return type >= CORE_ARRAY && type <= CORE_OBJECT; } /**