Skip to content

Commit

Permalink
Use class loader of the language when searching for provides
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Nov 2, 2023
1 parent f52c7e1 commit a25bfb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit a25bfb6

Please sign in to comment.