elitewe

Results 5 comments of elitewe

Hi, Could you please upload code about data preprocessing? I still have doubts about how to convert the source code into code/text_xxx.pt file.

Thank you. ------------------ 原始邮件 ------------------ 发件人: "ryderling/DGMS" ***@***.***>; 发送时间: 2021年12月29日(星期三) 晚上8:17 ***@***.***>; ***@***.******@***.***>; 主题: Re: [ryderling/DGMS] data processing (#1) Our data pre-processing code that converts the docstring of source code into a graph is...

> 可以通过开启SupportAutoType避免反序列化后携带@type字段 > > ``` > Map fastMap = JSON.parseObject(jsonStr, new TypeReference() {}, JSONReader.Feature.SupportAutoType); > ``` 好的谢谢,为什么fastjson1.2.68版本不用主动开启SupportAutoType就可以过滤@type字段?是fastjson1和fastjson2的默认策略不一样吗

> 2.0.x如果不配置SupportAutoType,就不会做任何相关处理,这个是为了安全考虑。 好的,请问开启SupportAutoType这个功能是在哪一个版本添加上去的,我使用fastjson2.0.13版本加上SupportAutoType后@type仍然没有去除

> 2.0.x如果不配置SupportAutoType,就不会做任何相关处理,这个是为了安全考虑。 另外我发现一个问题,如果序列化对象是java.sql.Date时,使用上述接口会报错 ``` import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONReader; import com.alibaba.fastjson2.JSONWriter; import com.alibaba.fastjson2.TypeReference; import java.sql.Date; import java.util.HashMap; import java.util.Map; public class demo21 { public static void main(String[] args) { Map map...