The attached patch fixes a couple of bugs spotted by
JAPI: serialization UIDs mainly, as well as a couple
of classes where I forgot to change the superclass.

Changelog:

2006-06-14  Andrew John Hughes  <[EMAIL PROTECTED]>

        * java/lang/management/ManagementPermission.java:
        Added serialization UID.
        * javax/management/Attribute.java: Likewise.
        * javax/management/MBeanException.java,
        * javax/management/ReflectionException.java:
        Added serialization UID and changed to extend
        javax.management.JMException.

-- 
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/lang/management/ManagementPermission.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/java/lang/management/ManagementPermission.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 ManagementPermission.java
--- java/lang/management/ManagementPermission.java      12 Jun 2006 08:43:00 
-0000      1.1
+++ java/lang/management/ManagementPermission.java      14 Jun 2006 20:22:10 
-0000
@@ -80,6 +80,11 @@ public class ManagementPermission
 {
 
   /**
+   * Compatible with JDK 1.5
+   */
+  private static final long serialVersionUID = 1897496590799378737L;
+
+  /**
    * Constructs a new <code>ManagementPermission</code>
    * for one of the two permission targets, "monitor"
    * and "control".
Index: javax/management/Attribute.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/management/Attribute.java,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 Attribute.java
--- javax/management/Attribute.java     9 Jan 2006 21:14:37 -0000       1.2
+++ javax/management/Attribute.java     14 Jun 2006 20:22:10 -0000
@@ -51,6 +51,11 @@ public class Attribute
   implements Serializable
 {
   /**
+   * Compatible with JDK 1.5
+   */
+  private static final long serialVersionUID = 2484220110589082382L;
+
+  /**
    * The attribute name.
    */
   final String m_name;
Index: javax/management/MBeanException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/management/MBeanException.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 MBeanException.java
--- javax/management/MBeanException.java        13 Jun 2006 20:54:01 -0000      
1.1
+++ javax/management/MBeanException.java        14 Jun 2006 20:22:10 -0000
@@ -49,9 +49,14 @@ package javax.management;
  * @since 1.5
  */
 public class MBeanException
-  extends Exception
+  extends JMException
 {
 
+  /**
+   * Compatible with JDK 1.5
+   */
+  private static final long serialVersionUID = 4066342430588744142L;
+
   /* Sun re-implemented causality -- don't know why, but
      serialization demands we do too... */
 
Index: javax/management/ReflectionException.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/javax/management/ReflectionException.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 ReflectionException.java
--- javax/management/ReflectionException.java   13 Jun 2006 20:54:01 -0000      
1.1
+++ javax/management/ReflectionException.java   14 Jun 2006 20:22:10 -0000
@@ -49,9 +49,14 @@ package javax.management;
  * @since 1.5
  */
 public class ReflectionException
-  extends Exception
+  extends JMException
 {
 
+  /**
+   * Compatible with JDK 1.5
+   */
+  private static final long serialVersionUID = 9170809325636915553L;
+
   /* Sun re-implemented causality -- don't know why, but
      serialization demands we do too... */
 

Attachment: signature.asc
Description: Digital signature

Reply via email to