diff --git a/compiler/src/main/java/module-info.java b/compiler/src/main/java/module-info.java index 98a1059d..707a2c14 100644 --- a/compiler/src/main/java/module-info.java +++ b/compiler/src/main/java/module-info.java @@ -1,3 +1,6 @@ +// Suppress "module not found" warnings (and unfortunately all other module warnings) for forward +// references of qualified exports (`exports ... to ...`), see https://stackoverflow.com/q/53670052 +@SuppressWarnings("module") module run.endive.compiler { requires transitive run.endive.runtime; requires transitive run.endive.wasm; @@ -6,6 +9,7 @@ requires org.objectweb.asm.util; exports run.endive.compiler; - exports run.endive.compiler.internal; exports run.endive.experimental.aot; + exports run.endive.compiler.internal to + run.endive.build.time.compiler; } diff --git a/runtime/src/main/java/module-info.java b/runtime/src/main/java/module-info.java index c9d56bea..c64719e8 100644 --- a/runtime/src/main/java/module-info.java +++ b/runtime/src/main/java/module-info.java @@ -1,7 +1,14 @@ +// Suppress "module not found" warnings (and unfortunately all other module warnings) for forward +// references of qualified exports (`exports ... to ...`), see https://stackoverflow.com/q/53670052 +@SuppressWarnings("module") module run.endive.runtime { requires transitive run.endive.wasm; exports run.endive.runtime; exports run.endive.runtime.alloc; - exports run.endive.runtime.internal; + exports run.endive.runtime.internal to + run.endive.compiler; + + // Code generated by Endive uses internal classes; make them publicly accessible at runtime + opens run.endive.runtime.internal; }