# HG changeset patch # User jjg # Date 1290035263 28800 # Node ID 8a5601394af47ea9c04c430e0ff84cdab7d49df2 # Parent 8c840d3ab24f8d0f422b991638acb44b6ab1d98c 7000973: isBogus needs to be called on the to-be-returned entry, not on the current entry Reviewed-by: jjg Contributed-by: jan.lahoda@oracle.com diff -r 8c840d3ab24f -r 8a5601394af4 langtools/src/share/classes/com/sun/tools/javac/code/Scope.java --- a/langtools/src/share/classes/com/sun/tools/javac/code/Scope.java Wed Jul 05 17:28:07 2017 +0200 +++ b/langtools/src/share/classes/com/sun/tools/javac/code/Scope.java Wed Nov 17 15:07:43 2010 -0800 @@ -528,7 +528,7 @@ } public Entry next() { Entry e = super.shadowed; - while (isBogus()) + while (e.isBogus()) e = e.shadowed; return e; }