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

Wed, 17 Nov 2010 15:07:43 -0800

author
jjg
date
Wed, 17 Nov 2010 15:07:43 -0800
changeset 751
abaceae7c9f8
parent 747
1dd813a529cf
child 752
03177f49411d

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

src/share/classes/com/sun/tools/javac/code/Scope.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Scope.java	Mon Nov 15 14:41:21 2010 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Scope.java	Wed Nov 17 15:07:43 2010 -0800
     1.3 @@ -528,7 +528,7 @@
     1.4              }
     1.5              public Entry next() {
     1.6                  Entry e = super.shadowed;
     1.7 -                while (isBogus())
     1.8 +                while (e.isBogus())
     1.9                      e = e.shadowed;
    1.10                  return e;
    1.11              }

mercurial