Skip to content

Commit 04ce7fd

Browse files
author
Juan Pablo González
committed
Revert "Fix StackOverflowException when instantiating JSONObject on Android (#938)"
This reverts commit c0f92a2.
1 parent cf6f413 commit 04ce7fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/src/main/java/com/genexus/json/JSONTokenerWrapper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.genexus.json;
22

3-
import org.json.JSONObject;
43
import org.json.JSONTokener;
54
import org.json.JSONException;
65

@@ -15,7 +14,7 @@ public Object nextValue() throws JSONException {
1514
this.back();
1615
if (c == '{') {
1716
try {
18-
return new JSONObjectWrapper((JSONObject) super.nextValue());
17+
return new JSONObjectWrapper(this);
1918
} catch (StackOverflowError e) {
2019
throw new JSONException("JSON Array or Object depth too large to process.", e);
2120
}

0 commit comments

Comments
 (0)