Compare commits

...

6 Commits

Author SHA1 Message Date
wenshao
52291c21b8 fix build error 2025-01-25 01:17:44 +08:00
wenshao
fa7fa4b3d3 fix build error 2025-01-25 01:11:28 +08:00
wenshao
150f2866ec fix build error 2025-01-25 01:04:00 +08:00
wenshao
39464d22f5 fix build error 2025-01-25 00:42:29 +08:00
wenshao
70126ee9ee fix build error 2025-01-25 00:37:30 +08:00
wenshao
48c8ce501b fix build error 2025-01-25 00:31:18 +08:00

View File

@ -72,6 +72,10 @@ public class DeepTest {
public void testObj() {
StringBuilder buf = new StringBuilder();
int count = 100000;
String os = System.getProperty("os.name");
if (os.toLowerCase().contains("win") && JDKUtils.JVM_VERSION == 11) {
count = 1000;
}
for (int i = 0; i < count; i++) {
buf.append("{\"v\":");
}
@ -87,7 +91,7 @@ public class DeepTest {
if (JDKUtils.JVM_VERSION == 8) {
context.setMaxLevel(512);
}
assertThrows(JSONException.class, () -> JSON.parse(str, context));
assertThrows(JSONException.class, () -> JSON.parse(str, context), os);
}
}
}