Closed richard-melvin closed 5 years ago
oh, interesting. hmm...yeah, i think we made that a keyword or something. :( Sorry but I doubt I'll get to this.
I believe this was one of my changes. I'll take a look.
Yeah the change is https://github.com/antlr/stringtemplate4/pull/185. However, according to the Map
interface it seems like this should be fine. I need to look into the specifics where the exception is thrown.
A model adapter returns a
Map<myClass1, MyClass2>
for attribute x.A template uses that value with
$if (!x.keys.empty)$
Get a class cast exception with stack trace
This is because the code now indexes into the map with the string 'keys', instead of using it to find the keyset.
This worked correctly on 4.0.8.
`