dubbo
dubbo copied to clipboard
请问支持Java8新时间类型的hessian的release版本,将在什么时候发布?
@yonghualuo 你关注java8时间类型的原因是?当前hessian序列化有什么问题吗,能否描述一下?
怎么退订
在2017年10月11日 20:54,ken.lj 写道:
@yonghualuo 你关注java8时间类型的原因是?当前hessian序列化有什么问题吗,能否描述一下?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
@chickenlj 原生hessian对java8的LocalDate等类型不支持,序列化时会报StackOverflowError
fix see #906,我们主要用的是dubbo协议,hessian不知道能不能自动把:locale的字符串反序列化为Locale对象,我想应该是ok的,jackson支持
public static void main(String[] args) throws IOException {
ObjectMapper mapper = new ObjectMapper();
String json = mapper.writeValueAsString(Locale.US);
System.out.println(json);
System.out.println(mapper.readValue(json, Locale.class));
}