Index: src/main/javax/management/MBeanInfo.java =================================================================== RCS file: /cvsroot/jboss/jboss-j2se/src/main/javax/management/MBeanInfo.java,v retrieving revision 1.3 diff -u -r1.3 MBeanInfo.java --- src/main/javax/management/MBeanInfo.java 30 Oct 2005 00:05:06 -0000 1.3 +++ src/main/javax/management/MBeanInfo.java 20 Dec 2005 15:13:12 -0000 @@ -125,7 +125,9 @@ if (this.getClassName().equals(other.getClassName()) == false) return false; - if (this.getDescription().equals(other.getDescription()) == false) + if (this.getDescription() != null && this.getDescription().equals(other.getDescription()) == false) + return false; + if (this.getDescription() == null && other.getDescription() != null) return false; MBeanAttributeInfo[] thisAttrs = this.getAttributes(); @@ -168,7 +170,7 @@ if (cacheHashCode == 0) { cacheHashCode = getClassName().hashCode(); - cacheHashCode = getDescription().hashCode(); + cacheHashCode += (getDescription() != null) ? getDescription().hashCode() : 0; } return cacheHashCode; } @@ -202,14 +204,14 @@ clone = (MBeanInfo) super.clone(); clone.className = getClassName(); clone.description = getDescription(); - + clone.attributes = getAttributes(); clone.constructors = getConstructors(); clone.operations = getOperations(); clone.notifications = getNotifications(); } catch(CloneNotSupportedException e) - { + { } return clone;