You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Markus Karg (Jira)" <ji...@apache.org> on 2019/08/22 10:18:00 UTC
[jira] [Created] (JOHNZON-273) Johnzon Extras
Polymorphic.Serializer runs into endless loop
Markus Karg created JOHNZON-273:
-----------------------------------
Summary: Johnzon Extras Polymorphic.Serializer runs into endless loop
Key: JOHNZON-273
URL: https://issues.apache.org/jira/browse/JOHNZON-273
Project: Johnzon
Issue Type: Bug
Components: JSON-B
Affects Versions: 1.2.0
Environment: $ mvn -verion
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
Maven home: C:\Program Files\apache-maven-3.6.1
Java version: 1.8.0_181, vendor: Azul Systems, Inc., runtime: C:\Program Files\zulu8.31.0.1-jdk8.0.181-win_x64\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Reporter: Markus Karg
Using Johnzon-JSONB + Johnzon-Extras-Polymorphic (tried with 1.1.10, 1.1.13, and 1.2.0-SNAPSHOT), *no* explicit JsonbCofig, *binding just by @JsonbDeserializer annotation*, the Polymorphic.Serializer runs into an endless loop as it again and gain and again tries to serialize the field "_value". It seems it *does not* detect the recursion.
Continuation of [https://github.com/eclipse-ee4j/jsonb-api/issues/147.|https://github.com/eclipse-ee4j/jsonb-api/issues/147]
--
This message was sent by Atlassian Jira
(v8.3.2#803003)