This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,
+2003-12-02 Dalibor Topic <robilad@kaffe.org>
+
+ Reported by: Jim Pick <jim@kaffe.org>
+ * libraries/javalib/java/util/Hashtable.java
+ (internalcontainsValue): New method.
+ (contains): Delegate to internalContainsValue.
+
public synchronized boolean contains(Object value) { - return containsValue(value); + /* delegate to non-overridable worker method + * to avoid blowing up the stack, when called + * from overridden contains[Value]() method. + */ + return internalContainsValue(value); }
Can you (Jim/Dalibor) explain what this change achieves? I understand reversing the delegation order between contains() & containsValue(), but why add an internal private method? It doesn't affect the overriding behaviour of containsValue() at all - or am I missing something
cheers, dalibor topic
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |