diff --git a/engine/runtime-parser/src/main/java/org/enso/compiler/core/Persistance.java b/engine/runtime-parser/src/main/java/org/enso/compiler/core/Persistance.java index 477b925d07ba..04398a5cdf6d 100644 --- a/engine/runtime-parser/src/main/java/org/enso/compiler/core/Persistance.java +++ b/engine/runtime-parser/src/main/java/org/enso/compiler/core/Persistance.java @@ -340,7 +340,7 @@ private static final class PersistanceMap { private PersistanceMap() { var hash = 0; - for (var p : ServiceLoader.load(Persistance.class)) { + for (var p : ServiceLoader.load(Persistance.class, getClass().getClassLoader())) { var prevId = ids.put(p.id, p); if (prevId != null) { throw new IllegalStateException("Multiple registrations for ID " + p.id + " " + prevId + " != " + p); diff --git a/engine/runtime-parser/src/main/scala/org/enso/compiler/core/ir/Module.scala b/engine/runtime-parser/src/main/scala/org/enso/compiler/core/ir/Module.scala index d89c3c13337f..86347a2a3ac2 100644 --- a/engine/runtime-parser/src/main/scala/org/enso/compiler/core/ir/Module.scala +++ b/engine/runtime-parser/src/main/scala/org/enso/compiler/core/ir/Module.scala @@ -23,7 +23,7 @@ import java.util.UUID @SerialVersionUID( 8160L // Use BindingsMap ) // prevents reading broken caches, see PR-3692 for details -sealed case class Module( +final case class Module( imports: List[Import], exports: List[Export], bindings: List[Definition],