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 2015/11/04 11:17:27 UTC
[jira] [Resolved] (JOHNZON-59) broken mapping of generic types in
inheritence hierarchy
[ https://issues.apache.org/jira/browse/JOHNZON-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved JOHNZON-59.
----------------------------------
Resolution: Fixed
Assignee: Mark Struberg
Fix Version/s: 0.9.3-incubating
> broken mapping of generic types in inheritence hierarchy
> --------------------------------------------------------
>
> Key: JOHNZON-59
> URL: https://issues.apache.org/jira/browse/JOHNZON-59
> Project: Johnzon
> Issue Type: Bug
> Components: Mapper
> Affects Versions: 0.9.2-incubating
> Reporter: Reinhard Sandtner
> Assignee: Mark Struberg
> Priority: Critical
> Fix For: 0.9.3-incubating
>
> Attachments: JOHNZON-59.patch
>
>
> We heavily use json for saving arbitrary objects as json-string in database.
> if you have a inheritance hierarchy of more than 1 with a generic declaration, deserializing the string fails with
> * ClassCastException - {{Cannot cast sun.reflect.generics.reflectiveObjects.TypeVariableImpl to java.lang.Class}} if the JavaType f.e. java.util.Long was serialized as a JsonString
> * MapperException: {{Unable to parse 478965 to T}} if the JavaType was serialized as JsonNumber
> maybe this is a follow up error from [JOHNZON-56|https://issues.apache.org/jira/browse/JOHNZON-56] but since this got release I decided to create a new issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)