You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2018/07/13 08:58:00 UTC
[jira] [Created] (JOHNZON-178) Mapper#writeArray(new short[] {1,2})
blows up with a ClassCastException
Mark Struberg created JOHNZON-178:
-------------------------------------
Summary: Mapper#writeArray(new short[] {1,2}) blows up with a ClassCastException
Key: JOHNZON-178
URL: https://issues.apache.org/jira/browse/JOHNZON-178
Project: Johnzon
Issue Type: Bug
Components: Mapper
Affects Versions: 1.1.8
Reporter: Mark Struberg
Assignee: Mark Struberg
Fix For: 1.1.9
new MapperBuilder().build().writeArray(new short[] \{ 1, 2 }, baos);
This currently blows up with
java.lang.ClassCastException: [S cannot be cast to [Ljava.lang.Object;
at org.apache.johnzon.mapper.Mapper.writeArray(Mapper.java:72)
at org.apache.johnzon.mapper.MapperTest.writeArray(MapperTest.java:491)
doing the same with new Short[] works like a charm...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)