Skip to content

chore: suppress module-not-found warnings for storm-core qualified exports - #441

Merged
zantvoort merged 1 commit into
mainfrom
chore/suppress-qualified-export-warnings
Aug 10, 2026
Merged

chore: suppress module-not-found warnings for storm-core qualified exports#441
zantvoort merged 1 commit into
mainfrom
chore/suppress-qualified-export-warnings

Conversation

@zantvoort

Copy link
Copy Markdown
Collaborator

Building storm-core prints a wall of [WARNING] module not found: storm.h2 (and 20 more) because its impl packages are exported to Storm's sibling modules only. Those siblings depend on storm-core, so none of them are observable while storm-core itself compiles, and javac warns for every qualified-export target it cannot see. The exports themselves work as intended: targets are resolved lazily, so the siblings get access once they compile with storm-core on their module path.

This annotates the module declaration with @SuppressWarnings("module"), which suppresses exactly this lint category for exactly this descriptor. No compiler flags change, so any other module-related warnings elsewhere still surface.

storm-kotlin is the only other module with a qualified export (st.orm.template.impl to kotlin.reflect), but it also requires kotlin.reflect, so that target is observable and never warned.

Verified with a clean mvn compile of storm-core: the warnings are gone.

…ports

The impl packages are exported to Storm's sibling modules only. Those
siblings depend on storm-core, so none of them are observable while
storm-core itself compiles and javac emits a "module not found" warning
for every qualified-export target. Annotate the module declaration with
@SuppressWarnings("module") to keep the build output clean; the exports
resolve as intended once the siblings compile with storm-core on their
module path.
@zantvoort
zantvoort merged commit 366e848 into main Aug 10, 2026
6 checks passed
@zantvoort
zantvoort deleted the chore/suppress-qualified-export-warnings branch August 10, 2026 19:13
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant