dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

请问支持Java8新时间类型的hessian的release版本,将在什么时候发布?

Open yonghualuo opened this issue 9 years ago • 5 comments

yonghualuo avatar Oct 09 '17 08:10 yonghualuo

将在2.5.6版本发布,本周发布。

答疑或使用疑问,请到gitter提问,实时聊天更方便

chickenlj avatar Oct 10 '17 00:10 chickenlj

@yonghualuo 你关注java8时间类型的原因是?当前hessian序列化有什么问题吗,能否描述一下?

chickenlj avatar Oct 11 '17 12:10 chickenlj

怎么退订

在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.

RylanStar avatar Oct 12 '17 03:10 RylanStar

@chickenlj 原生hessian对java8的LocalDate等类型不支持,序列化时会报StackOverflowError

yonghualuo avatar Oct 12 '17 04:10 yonghualuo

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));
}

takeseem avatar Nov 22 '17 15:11 takeseem