Skip to content

Conversation

yohannrub
Copy link

@yohannrub yohannrub commented Jan 28, 2022

Cache collisions may occur when compiling:

  • StringTemplateSource objects having same string hashCode
  • TemplateSource objects having same filename but incompatible runtime types

This PR fixes them by implementing proper equals / hashCode methods in TemplateSource classes.
Tests have been added to exhibit the expected behaviours (that failed without this patch).

Fixes #686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TemplateSource's need better, stricter equals()
1 participant