ggregory 2004/02/11 16:48:30
Modified: lang/src/java/org/apache/commons/lang/enum Enum.java
Log:
equals() Javadoc now mentions the separate class loader case.
Revision Changes Path
1.25 +4 -1
jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java
Index: Enum.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- Enum.java 12 Feb 2004 00:45:09 -0000 1.24
+++ Enum.java 12 Feb 2004 00:48:30 -0000 1.25
@@ -557,6 +557,9 @@
* <p>Two Enum objects are considered equal
* if they have the same class names and the same names.
* Identity is tested for first, so this method usually runs fast.</p>
+ *
+ * <p>If the parameter is in a different class loader than this instance,
+ * reflection is used to compare the names.</p>
*
* @param other the other object to compare for equality
* @return <code>true</code> if the Enums are equal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]