The BagUtils.UnmodifiableBag class was not utilizing its getBag() method.
HTH,
Andy
Index: BagUtils.java
===================================================================
RCS file:
/home/cvspublic/jakarta-commons/collections/src/java/org/apache/commons/collections/BagUtils.java,v
retrieving revision 1.7
diff -u -r1.7 BagUtils.java
--- BagUtils.java 13 Oct 2002 00:38:36 -0000 1.7
+++ BagUtils.java 20 Feb 2003 01:57:19 -0000
@@ -132,11 +132,11 @@
}
public Set uniqueSet() {
- return ((Bag)collection).uniqueSet();
+ return getBag().uniqueSet();
}
public int getCount(Object o) {
- return ((Bag)collection).getCount(o);
+ return getBag().getCount(o);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]