antlr / stringtemplate4

StringTemplate 4
http://www.stringtemplate.org
Other
955 stars 231 forks source link

resolved Issue #98 ArrayIndexOutOfBoundsException #188

Closed FullGC closed 6 years ago

FullGC commented 7 years ago

issue #98 We are using ST for a few years on our 600 machines cluster and always had this exception on some of them. The problem seems to be an insert of a key that already exists in the map, then the map size is the same => 'local' array length is the the same as the map but the index does increment. reversed order of increment index and insert key in CompiledST seems to resolve the issue.

parrt commented 6 years ago

Hi @FullGC can you sign contributors.txt? thanks

parrt commented 6 years ago

Actually, I think I fixed this in a different way. closing. see https://github.com/antlr/stringtemplate4/commit/c3999aab4832ec590c36999368a7dd8e9e53c316

FullGC commented 6 years ago

@parrt ok then...