antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

[Java] Used LinkedHashSet to preserve insertion order in SemanticContext

Open jcking opened this issue 3 years ago • 2 comments

Currently SemanticContext equality and hashing assume a well defined iteration order for HashSet. HashSet does not actually guarantee this, so we need to switch to LinkedHashSet which guarantees iteration order based insertion order.

jcking avatar Mar 23 '22 15:03 jcking

@parrt

jcking avatar Mar 23 '22 15:03 jcking

I think I'm going to need time to look at this in more detail after 4.10. should be okay but you never know...

parrt avatar Mar 27 '22 18:03 parrt