* decl.cs (MemberCache.AddHashtable): Add entries in the opposite
direction, like FindMembers() does. Fixes #69546, testcase is in
test-315.cs.
svn path=/trunk/mcs/; revision=36182
+2004-11-17 Martin Baulig <martin@ximian.com>
+
+ * decl.cs (MemberCache.AddHashtable): Add entries in the opposite
+ direction, like FindMembers() does. Fixes #69546, testcase is in
+ test-315.cs.
+
2004-11-16 Martin Baulig <martin@ximian.com>
This is based on a patch from Marek Safar, see bug #69082.
if (list == null)
hash [it.Key] = list = new ArrayList ();
- foreach (CacheEntry entry in (ArrayList) it.Value) {
+ ArrayList entries = (ArrayList) it.Value;
+ for (int i = entries.Count-1; i >= 0; i--) {
+ CacheEntry entry = (CacheEntry) entries [i];
+
if (entry.Container != cache.Container)
break;
list.Add (entry);