I'm committing the attached patch which fixes the serialization UIDs for two new enumerations.
Changelog:
2006-03-27 Andrew John Hughes <[EMAIL PROTECTED]>
* java/math/RoundingMode.java:
Fixed serialization UID.
* java/net/Proxy.java:
(Type): Likewise.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/math/RoundingMode.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/math/Attic/RoundingMode.java,v
retrieving revision 1.1.2.1
diff -u -3 -p -u -r1.1.2.1 RoundingMode.java
--- java/math/RoundingMode.java 21 Feb 2006 15:35:08 -0000 1.1.2.1
+++ java/math/RoundingMode.java 27 Mar 2006 21:37:08 -0000
@@ -47,6 +47,11 @@ package java.math;
public enum RoundingMode
{
UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN, HALF_EVEN, UNNECESSARY;
+
+ /**
+ * For compatability with Sun's JDK
+ */
+ private static final long serialVersionUID = 432302042773881265L;
/**
* Returns the RoundingMode object corresponding to the legacy rounding modes
Index: java/net/Proxy.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/Attic/Proxy.java,v
retrieving revision 1.1.2.2
diff -u -3 -p -u -r1.1.2.2 Proxy.java
--- java/net/Proxy.java 8 Mar 2006 12:01:37 -0000 1.1.2.2
+++ java/net/Proxy.java 27 Mar 2006 21:37:08 -0000
@@ -49,7 +49,15 @@ public class Proxy
/**
* Represents the proxy type.
*/
- public enum Type { DIRECT, HTTP, SOCKS };
+ public enum Type
+ {
+ DIRECT, HTTP, SOCKS
+
+ /**
+ * For compatability with Sun's JDK
+ */
+ private static final long serialVersionUID = -2231209257930100533L;
+ };
public static final Proxy NO_PROXY = new Proxy(Type.DIRECT, null);
signature.asc
Description: Digital signature
