This adds the notification data sent out by memory notifications. All that is now required is to link the two up in the MemoryMXBean, and provide the facility for VMs to fire them if they wish to do so.
Changelog:
2006-07-16 Andrew John Hughes <[EMAIL PROTECTED]>
* java/lang/management/MemoryNotificationInfo.java:
New file.
--
Andrew :-)
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... */
signature.asc
Description: Digital signature
