johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JOHNZON-178) Mapper#writeArray(new short[] {1,2}) blows up with a ClassCastException
Date Wed, 29 May 2019 10:33:01 GMT

     [ https://issues.apache.org/jira/browse/JOHNZON-178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau updated JOHNZON-178:
---------------------------------------
    Fix Version/s:     (was: 1.1.12)
                   1.1.13

> 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
>            Priority: Major
>             Fix For: 1.1.13
>
>
> 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)

Mime
View raw message