Skip to content

Commit 803cd35

Browse files
committed
Fix Object component type for ArrayCodec.of
1 parent c51a2b7 commit 803cd35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/jdk/test/lib/format/ArrayCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public static ArrayCodec of(Object array) {
154154
} else if (type == String.class) {
155155
return ArrayCodec.of((String[])array);
156156
} else if (!type.isPrimitive() && !type.isArray()) {
157-
return ArrayCodec.of((String[])array);
157+
return ArrayCodec.of((Object[])array);
158158
}
159159

160160
throw new IllegalArgumentException("Unsupported array component type: " + type);

0 commit comments

Comments
 (0)