-
Notifications
You must be signed in to change notification settings - Fork 550
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
2.0.8版本
public static void main(String[] args) {
TestParam param = new TestParam();
List<Long> list = new ArrayList<>();
list.add(1L);
param.setIds(list);
System.out.println(JSON.parseObject("{\"ids\":[1]}").to(TestParam.class));
}Exception in thread "main" java.lang.UnsupportedOperationException: com.alibaba.fastjson2.reader.FieldReaderListInt64
at com.alibaba.fastjson2.reader.ObjectReader.createInstance(ObjectReader.java:37)
at com.alibaba.fastjson2.JSONArray.to(JSONArray.java:938)
at com.alibaba.fastjson2.reader.ObjectReader.createInstance(ObjectReader.java:109)
at com.alibaba.fastjson2.JSONObject.to(JSONObject.java:1190)
at com.mcd.cn.rms.order.core.controller.ComplainController.main(ComplainController.java:36)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working