7000973: isBogus needs to be called on the to-be-returned entry, not on the current entry
authorjjg
Wed, 17 Nov 2010 15:07:43 -0800
changeset 7329 8a5601394af4
parent 7217 8c840d3ab24f
child 7330 7c670eebe55c
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
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;
             }