[ https://issues.apache.org/jira/browse/JOHNZON-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16936823#comment-16936823 ]
Romain Manni-Bucau commented on JOHNZON-280: -------------------------------------------- Hi [~fulrich], did you test with master? guess [https://github.com/apache/johnzon/commit/e4d3684269b37ece70143a68ebc50b346183307e#diff-88a3b8dba6802b1d43af9c797262a918] fixes it and that JOHNZON-274 is actually the same. > Removing an entry from an array in an object with more than one array fails > --------------------------------------------------------------------------- > > Key: JOHNZON-280 > URL: https://issues.apache.org/jira/browse/JOHNZON-280 > Project: Johnzon > Issue Type: Bug > Components: Core > Affects Versions: 1.1.12, 1.1.13 > Reporter: Friedrich Ulrich > Priority: Major > > Code to reproduce: > {{JsonObject base = Json.createObjectBuilder()}} > {{ .add("foo", Json.createArrayBuilder().add("foo").add("bar").build())}} > {{ .add("bar", Json.createArrayBuilder().build())}} > {{ .build();}} > JsonPatch p = Json.createPatchBuilder().remove("/foo/0").build(); > p.apply(base); > > {{Throws an execption:}} > {{javax.json.JsonException: '[]' contains no element for index 0}} -- This message was sent by Atlassian Jira (v8.3.4#803005)