AVSystem / scex

Extensible, fast and secure Scala expression evaluation engine
MIT License
21 stars 4 forks source link

Fixed infinite background compilation in scala 2.13.14 #37

Closed freddie713 closed 3 months ago

freddie713 commented 3 months ago

Fixed infinite background compilation caused by changes in scala.reflect.internal.util.BatchSourceFile.hashCode introduced in scala 2.13.13 If scala.tools.nsc.interactive.Global#isOutOfDate returns true then scala.tools.nsc.interactive.Global#backgroundCompile runs infinitely because waitLoadedTypeResponses are not cleaned properly due to the fact that hashCode implementation for ScexSourceFile is taken from Object. Changed hashCode/equals for ScexSourceFile so it's computed as before 2.13.13