serialized objects

serialized objectsThisstartedagain…athreadfrom*****:WhatdoyouconsiderabestpracticeforserialVersionUID?T______________________________________________From:*******Sent:Thursday,Nov…

大家好,又见面了,我是你们的朋友全栈君。This started again… a thread from *****:

What do you consider a best practice for serialVersionUID?

T

______________________________________________

From: *******

Sent: Thursday, November 15, 2007 10:45 AM

To: *******

Cc: *******

Subject: serilaVersionUID

Hi, *****, I realized that you changed the servialVersionUID in 11 TOs and make them unique. What is the purpose to make them unique?

Once the serilaVersionUID in TO is modified, both BPM and rule engine has to be deployed again. Now Dev rule engine is broken, and I am afraid Dev BPM (if it is running) also need redeploy.

*******

So after doing research again here is what I (*****) thinks:

The purpose of the serialVersionUID is to give the developer the control of when a class is compatible with previous versions and when not.

The consequence of this is that when the class changes, the developer needs to check that if the new class has compatible changes with previous versions, then keep the same number, if changes are not compatible, then change the number.

you can use the command: serialver to generate a serial version uid.

Articles:

[url=http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-control.html?page=1]JavaWorld[/url]

[url=http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/class.html#5421]Java Object Serialization Specification version 1.5.0[/url]

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/148527.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 交换机telnet配置

    交换机telnet配置

    2021年7月30日
    69
  • pycharm中如何导入库_如何把手变成手控

    pycharm中如何导入库_如何把手变成手控大家都知道,Python是一个极其方便的由库构建的编程语言。比如机器学习的库sklearn,文件读取pandas,文件读写xlwt,xlrt,矩阵运算numpy等等等等等等等等等等,多到你无法想象!那到底如何导入Python库呢?我们今天就来学习一下~点击File->NewProject,创建一个PyCharm项目,然后点击File->Settings->P…

    2022年8月26日
    5
  • 推荐哪些好用的国外代理服务器?

    推荐哪些好用的国外代理服务器?现在市场上的代理服务器很多,由于它可以隐藏IP地址而受到很多人的追捧,但是代理服务器基本上都是国外的,对于小白来说,如何选择一个好的代理服务器是一个比较头疼的问题,下面介绍一些比较常用的代理服务器软件。MicrosoftProxyServerMicrosoftProxyServer是在组织中引入对Intemet的访问,在每个桌面上都提供了一种简单而安全的方法,其中包括WebProxy服务器、WinsockProxy服务器和SocksProxy服务器。该系统安装简单,充分利用了内部服务器的安全性,并且.

    2022年4月28日
    189
  • mysql存储过程执行_mysql存储过程不执行

    mysql存储过程执行_mysql存储过程不执行查看event是否开启:showvariableslike’%sche%’;将事件计划开启:setglobalevent_scheduler=1;关闭事件任务:alterevente_testONCOMPLETIONPRESERVEDISABLE;开户事件任务:alterevente_testONCOMPLETIONPRESERVEENABLE;简单实例….

    2025年11月4日
    2
  • facebook录制本人视频_机器人视频

    facebook录制本人视频_机器人视频Facebook让机器人“观看”上万次视频后,学会了绕道走路

    2022年4月22日
    37
  • disk quota exceeded

    磁盘满了之前提过用命令行查看还有一种可视化方法终端输入baobab

    2022年4月14日
    61

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号