Open undqurek opened 1 month ago
Just remove the abstract
modifier from the MyNode
class.
Thanks. It works, but I think it could be good to add some exception to know what is going on.
Adding exception information seems to be feasible, Maybe you need to report it in another repository instead of here.
Problem description
FASTJSON2 has problem to parse JSON to specific object by
JSON.parseObject()
mehod when polymorphism is used. Object type class inherits from some abstract class. To describe classes@JSONType
annotation was used. The final result is crushed JVM.Practical example
Used OS:
Ubuntu 24.04.1 LTS x64
Used JVM:
Note: the same problem occurs on Java 17 so it looks like the problem is common.
Used FASTJSON2:
Source code that crushes JVM (
Program.java
):Console output:
JVM logs (
hs_err_pid64235.log
):