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

Spring - fix jakarta imports for validation-mode 'strict' #1313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DaScheid
Copy link

@DaScheid DaScheid commented Oct 3, 2024

This PR directly addresses commit 2835d9d which was added in #1308 :
When configuring the generator to use imports from the jakarta-namespace, then no javax-imports should be present in the generated files

Current status (before this PR):
Generating Spring-sources with the new default validation-mode 'strict' creates java-files 'NotUndefined.java' and 'NotUndefinedValidator.java' with 'javax'-imports independent of the 'jakarta'-flag. This leads to a compile-time error, as these javax-imports cannot be found.

Updated behavior:
Dependant on the 'jakarta'-setting on the generator either 'javax'- or 'jakarta'-imports are generated

When configuring generator to use imports from the jakarta-namespace, then no javax-imports should be present in the generated files
@DaScheid DaScheid changed the title Spring - fix jakarta imports for validation-mode Spring - fix jakarta imports for validation-mode 'strict' Oct 3, 2024
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