Hi Vyom, EventSupport —
You can achieve the same using an Iterator over the values of the map, thereby simplifying the code. RemoveNamingListenerTest — 50 private static Exception exception; This should be marked volatile. Paul. > On 13 Jun 2017, at 01:30, Vyom Tewari <vyom.tew...@oracle.com> wrote: > > Hi All, > > Please find the code change for below issue. > > BugId : https://bugs.openjdk.java.net/browse/JDK-8176192 > > Webrev : http://cr.openjdk.java.net/~vtewari/8176192/webrev0.0/index.html > > If the hashtable is structurally modified while enumerating over the values > then the results of enumerating are undefined. I used explicit iterator to > remove the item from HashTable, which is clearly specified. > > Thanks, > > Vyom >