Skip to content

Add opt-in strict mode for Jackson module generation failures - #195

Closed
AndreasIgel wants to merge 1 commit into
java-helpers:mainfrom
AndreasIgel:feature/173-strict-jackson-module
Closed

AndreasIgel wants to merge 1 commit into
java-helpers:mainfrom
AndreasIgel:feature/173-strict-jackson-module

Conversation

@AndreasIgel

Copy link
Copy Markdown
Collaborator

Summary

Extends the opt-in strict/fail-fast mode to Jackson module generation failures. When -Asimplebuilder.strict=true is set, a failure to generate a Jackson SimpleModule is reported as a compiler error that fails the build instead of a warning.

  • Reuses the shared STRICT compiler option / simplebuilder.strict argument.
  • BuilderProcessor's processingOver() Jackson loop reports an error instead of a warning when strict is enabled.
  • Documents the behavior in README.md.

The default is unchanged: Jackson module generation failures remain warnings and the build still succeeds.

Note: this PR and #172 both introduce the shared simplebuilder.strict option; whichever merges second will need a trivial conflict resolution on the shared STRICT enum constant and the strict field.

Validation

mvn clean verify — green (285 processor tests). New JacksonModuleStrictModeTest covers both default (warning, compilation succeeds) and strict (error, compilation fails) behavior.

Fixes #173

Promote Jackson module generation failures from warnings to compiler
errors when the shared strict option (-Asimplebuilder.strict=true) is set.
The default is unchanged: failures remain warnings and the build succeeds.

Fixes java-helpers#173

Co-Authored-By: Andreas Igel <andreas.igel@computacenter.com>
@AndreasIgel

Copy link
Copy Markdown
Collaborator Author

Superseded by #194, which now combines the builder and Jackson-module strict-mode changes (Fixes #172 and #173) since they share the same option and file. Closing this PR.

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@devin-ai-integration
devin-ai-integration Bot deleted the feature/173-strict-jackson-module branch August 16, 2026 21:11
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.

Add opt-in strict/fail-fast mode for Jackson module generation failures (default unchanged)

1 participant