-
2005年06月08日
eclipse中的cvs删除操作与TortoiseCVS的删除操作的不同之处
在eclipse里面,如果你删除了一个文件或文件夹,则eclipse会认为除了删除本地的文件(文件夹),你也要删除服务器上的文件(文件夹),当你commit的时候,就会帮你删除掉服务器上的文件(文件夹)。这是eclipse的智能之处,但eclipse新手老是会忘了这一点,从而误删服务器上的文件(文件夹)。
在TortoiseCVS中,如果直接通过资源管理器删除文件(文件夹),TortoiseCVS是不会帮你删掉CVS服务器上的文件(文件夹)的。要删除服务器上的文件(文件夹),必须通过TortoiseCVS的菜单进行删除操作,再commit。
Wincvs与TortoiseCVS类似。
-
"When java tries to deserialize an object, it compares the serialized object's serialVersionUID with that of the class the JVM is using for deserializing the object. ...
If the two numbers don't match, the JVM assumes the class is not compatible with the previously-serialized object, and you'll get an exception during deserialization.
So, the solution is to put a serialVersionUID in your class, and then as the class evolves, the serialVersionUID will remain the same and the JVM will say, "Ok, cool, the class is compatible with this serialized object." even though the class has actually changes"If the class has been changed and you want the JVM to not to load the previously serialized classes then the serialVersionUID . Otherwise leave it alone.
-
2005年05月20日
eclipse 3.1M7似有一大bug
-
2005年05月06日
Appfuse video
Appfuse video:
Watch:
appfuse.org/setup.html">http://demo.appfuse.org/setup.html
http://demo.appfuse.org/appgen.html
Download:
https://www.dev.java.net/files/documents/1397/14148/appfuse-videos.zip
-
2005年04月23日
慎用Eclipse的文件复制功能
Eclipse的Package Explorer和Navigator对文件的操作是很方便的,可以拖拉复制、移动文件。然而如果两个Project都已经Share到CVS了的话,则最好不要用它的文件操作来复制(移动)文件。因为Eclipse会自作聪明的连CVS目录都复制(移动)过去,也就是说,如果在Project A复制一个文件(文件夹)去到Project B,则Project B里的文件实际上是对应CVS里面的同一个文件,就跟Java里面两个对象保存的是同一个引用一样。







