7000973: isBogus needs to be called on the to-be-returned entry, not on the current entry

Reviewed-by: jjg
This commit is contained in:
Jan Lahoda 2010-11-17 15:07:43 -08:00 committed by Jonathan Gibbons
parent 4ae2fc83cf
commit 220f3b1c1b

View File

@ -528,7 +528,7 @@ public class Scope {
}
public Entry next() {
Entry e = super.shadowed;
while (isBogus())
while (e.isBogus())
e = e.shadowed;
return e;
}