hg: jdk9/sandbox/langtools: 8144733: Iterating over elements of a Scope can return spurious inner class elements

chris.hegarty at oracle.com chris.hegarty at oracle.com
Mon Aug 8 15:46:16 UTC 2016


Changeset: 45241cff9d3a
Author:    jlahoda
Date:      2016-08-08 17:22 +0200
URL:       http://hg.openjdk.java.net/jdk9/sandbox/langtools/rev/45241cff9d3a

8144733: Iterating over elements of a Scope can return spurious inner class elements
Summary: When a Symbol is removed from a Scope while iterating over it, update the iterator as well to reflect the change.
Reviewed-by: mcimadamore

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Scope.java
+ test/tools/javac/scope/IterateAndRemove.java



More information about the jdk9-sandbox-changes mailing list