This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
serialVersionUID fixes
- From: Michael Koch <konqueror at gmx dot de>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Fri, 4 Oct 2002 10:56:07 +0200
- Subject: serialVersionUID fixes
Hello list,
I commited the attached little patch to fix some little things.
Michael
--
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1469
diff -u -r1.1469 ChangeLog
--- ChangeLog 3 Oct 2002 22:54:03 -0000 1.1469
+++ ChangeLog 4 Oct 2002 08:47:20 -0000
@@ -1,3 +1,11 @@
+2002-10-04 Michael Koch <konqueror@gmx.de>
+
+ * java/beans/beancontext/BeanContextChildSupport.java:
+ Added serialVersionUID.
+ * java/text/Collator.java: (compare): Made documentation HTML-aware.
+ * javax/naming/BinaryRefAddr.java: Added serialVersionUID.
+ * javax/naming/Name.java: Added serialVersionUID.
+
2002-10-03 Adam Megacz <adam@xwt.org>
* natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out
Index: java/beans/beancontext/BeanContextChildSupport.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/beans/beancontext/BeanContextChildSupport.java,v
retrieving revision 1.2
diff -u -r1.2 BeanContextChildSupport.java
--- java/beans/beancontext/BeanContextChildSupport.java 22 Jan 2002 22:40:12 -0000 1.2
+++ java/beans/beancontext/BeanContextChildSupport.java 4 Oct 2002 08:47:20 -0000
@@ -60,7 +60,11 @@
* @see java.beans.beancontext.BeanContextChild
*/
-public class BeanContextChildSupport implements BeanContextChild, BeanContextServicesListener, Serializable {
+public class BeanContextChildSupport
+ implements BeanContextChild, BeanContextServicesListener, Serializable
+{
+ static final long serialVersionUID = 6328947014421475877L;
+
/**
* The peer on which to perform <code>set</code> actions.
* This is here so that this class can be used as a peer.
Index: java/text/Collator.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/Collator.java,v
retrieving revision 1.10
diff -u -r1.10 Collator.java
--- java/text/Collator.java 22 Jan 2002 22:40:37 -0000 1.10
+++ java/text/Collator.java 4 Oct 2002 08:47:21 -0000
@@ -153,8 +153,8 @@
* @param str1 The first object to compare
* @param str2 The second object to compare
*
- * @return A negative integer if str1 < str2, 0 if str1 == str2, or
- * a positive integer if str1 > str2.
+ * @return A negative integer if str1 < str2, 0 if str1 == str2, or
+ * a positive integer if str1 > str2.
*/
public abstract int compare (String source, String target);
@@ -167,8 +167,8 @@
* @param obj1 The first object to compare
* @param obj2 The second object to compare
*
- * @return A negative integer if obj1 < obj2, 0 if obj1 == obj2, or
- * a positive integer if obj1 > obj2.
+ * @return A negative integer if obj1 < obj2, 0 if obj1 == obj2, or
+ * a positive integer if obj1 > obj2.
*
* @exception ClassCastException If the arguments are not instances
* of <code>String</code>.
Index: javax/naming/BinaryRefAddr.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/naming/BinaryRefAddr.java,v
retrieving revision 1.5
diff -u -r1.5 BinaryRefAddr.java
--- javax/naming/BinaryRefAddr.java 25 Sep 2002 05:05:07 -0000 1.5
+++ javax/naming/BinaryRefAddr.java 4 Oct 2002 08:47:21 -0000
@@ -50,6 +50,7 @@
*/
public class BinaryRefAddr extends RefAddr
{
+ static final long serialVersionUID = -3415254970957330361L;
/**
* The possibly null content of this RefAddr.
Index: javax/naming/Name.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/naming/Name.java,v
retrieving revision 1.5
diff -u -r1.5 Name.java
--- javax/naming/Name.java 22 Jan 2002 22:40:42 -0000 1.5
+++ javax/naming/Name.java 4 Oct 2002 08:47:21 -0000
@@ -62,6 +62,8 @@
*/
public interface Name extends Cloneable, Serializable
{
+ static final long serialVersionUID = -3617482732056931635L;
+
/**
* Returns the number of components of this <code>Name</code>.
* The returned number can be zero.