Compare commits
6 Commits
main
...
fix_build_
Author | SHA1 | Date | |
---|---|---|---|
![]() |
52291c21b8 | ||
![]() |
fa7fa4b3d3 | ||
![]() |
150f2866ec | ||
![]() |
39464d22f5 | ||
![]() |
70126ee9ee | ||
![]() |
48c8ce501b |
@ -72,6 +72,10 @@ public class DeepTest {
|
|||||||
public void testObj() {
|
public void testObj() {
|
||||||
StringBuilder buf = new StringBuilder();
|
StringBuilder buf = new StringBuilder();
|
||||||
int count = 100000;
|
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++) {
|
for (int i = 0; i < count; i++) {
|
||||||
buf.append("{\"v\":");
|
buf.append("{\"v\":");
|
||||||
}
|
}
|
||||||
@ -87,7 +91,7 @@ public class DeepTest {
|
|||||||
if (JDKUtils.JVM_VERSION == 8) {
|
if (JDKUtils.JVM_VERSION == 8) {
|
||||||
context.setMaxLevel(512);
|
context.setMaxLevel(512);
|
||||||
}
|
}
|
||||||
assertThrows(JSONException.class, () -> JSON.parse(str, context));
|
assertThrows(JSONException.class, () -> JSON.parse(str, context), os);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user