changeset 7329:8a5601394af4

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
author jjg
date Wed, 17 Nov 2010 15:07:43 -0800
parents 8c840d3ab24f
children 7c670eebe55c
files langtools/src/share/classes/com/sun/tools/javac/code/Scope.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }