#82 AOpenMap: PEntry is invalid after modification of Map

Stängd
öppnade 4 år sedan av ranides · 0 kommentarer
ranides kommenterad 4 år sedan

Problem is detected inside PrototypeMap: we can't use OpenMap, we must use HashMap, because OpenMap returns entrySet with invalid behaviour.

Inside PrototypeMap: our RemoveIterator iterates over set of entries, but changes maps. It should work, if Entry objects stored inside "aggregate set" have correct behaviour.

Unfortunatelly, entries returned by OpenMap are broken after changing map

Inside AOpenMap: PEntry stores only "int index" pointing to hashtable, which means this entry will break after ANY modification of hash table

PEntry is smart and fast VIEW, but it can be used if we add/remove something from map.

Problem is detected inside PrototypeMap: we can't use OpenMap, we must use HashMap, because OpenMap returns entrySet with invalid behaviour. Inside PrototypeMap: our RemoveIterator iterates over set of entries, but changes maps. It should work, if Entry objects stored inside "aggregate set" have correct behaviour. Unfortunatelly, entries returned by OpenMap are broken after changing map Inside AOpenMap: PEntry stores only "int index" pointing to hashtable, which means this entry will break after ANY modification of hash table PEntry is smart and fast VIEW, but it can be used if we add/remove something from map.
ranides refererade till detta ärende från en incheckning 4 år sedan
Logga in för att delta i denna konversation.
Ingen Milsten
Ingen förvärvare
1 Deltagare
Laddar...
Avbryt
Spara
Det finns inget innehåll än.