Neoklosch commented on a change in pull request #62: Added possibility to use minus as array index for the remove operation. URL: https://github.com/apache/johnzon/pull/62#discussion_r398453456
########## File path: johnzon-core/src/main/java/org/apache/johnzon/core/JsonPointerImpl.java ########## @@ -339,8 +339,7 @@ private JsonValue getValue(JsonValue jsonValue, String referenceToken, int curre try { JsonArray jsonArray = (JsonArray) jsonValue; - int arrayIndex = Integer.parseInt(referenceToken); - validateArraySize(jsonArray, arrayIndex, jsonArray.size()); Review comment: The array size validation will be executed in the validateArraySize (https://github.com/apache/johnzon/blob/d1c6a2f62ef0bb5a798161799eae4602e20a233e/johnzon-core/src/main/java/org/apache/johnzon/core/JsonPointerImpl.java#L469-L472). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services