We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
属性类: ` public class Field {
private String id; public String getId() { return id; } public void setId(String id) { this.id = id; }
} `
转换测试类
` public class Test {
class HeapSpace{ private List<Field> reportOwner; public List<Field> getReportOwner() { return reportOwner; } public void setReportOwner(List<Field> reportOwner) { this.reportOwner = reportOwner; } } public static void main(String[] args) { String parseString = "{\"reportOwner\":[null]}"; HeapSpace heapSpace = JSONObject.parseObject(parseString, HeapSpace.class); String aa = ""; }
执行后内存一直飙升,直到堆内存溢出,生产环境报错 Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Java heap space
The text was updated successfully, but these errors were encountered:
HeapSpace作为一个内部类,如果没有static,无法访问。 加上static后,解析正常。
Sorry, something went wrong.
No branches or pull requests
属性类:
`
public class Field {
}
`
转换测试类
`
public class Test {
}
`
执行后内存一直飙升,直到堆内存溢出,生产环境报错
Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Java heap space
The text was updated successfully, but these errors were encountered: