Roman Kennke wrote: > Friedjof Siebert did some improvements on > java.util.WeakHashMap that I'd > like to check in. They are meant to improve reliability of > this class by enabling the prove of a cast and the absence of > a null-pointer.
I don't understand the point of the instanceof. If somehow there is a bug in the code that introduces a non-WeakBucket, surely the best thing would be to throw a ClassCastException, not silently ignore it. reliability != hiding errors Regards, Jeroen _______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
