Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle potential null-stream in buildinfo plugin #2838

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Handle potential null-stream in buildinfo plugin #2838

merged 1 commit into from
Oct 12, 2023

Conversation

lefou
Copy link
Member

@lefou lefou commented Oct 12, 2023

The current Scala implementation just does not load the expected values from the resource file, when the resource file can not be found on the classpath. The Java implementation already throws a RuntimeException (of an IOException) in this case. The Scala implementation does not.

I think missing a generated resource file at runtime is most likely an runtime issue and we should also throw such exception in the Scala implementation to exit early, before a missing value can cause greater harm later. Hence, we now also throw a RuntimeException when the resource file/stream could not be found in the Scala implementation.

Fix #2831

@lefou lefou merged commit 5c34391 into main Oct 12, 2023
37 checks passed
@lefou lefou deleted the fix-2831 branch October 12, 2023 13:18
@lefou lefou added this to the 0.11.6 milestone Oct 12, 2023
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.

BuildInfo plugin can‘t work with scala 3 -Yexplicit-nulls option.
1 participant