Skip to content

Commit 480fd73

Browse files
authored
Fix ClassCastException when array values is set as List (#794)
1 parent 4bdaf8e commit 480fd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack-core/src/main/java/org/msgpack/value/Variable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ public Variable setArrayValue(List<Value> v)
817817
{
818818
this.type = Type.LIST;
819819
this.accessor = arrayAccessor;
820-
this.objectValue = v.toArray();
820+
this.objectValue = v.toArray(new Value[v.size()]);
821821
return this;
822822
}
823823

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy