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?
to your account
When Selma generates the custom enum mapping, it does not checks for validity of the default value if defined.
So we get a compilation warning on the generated class.
We should add a compiler check for that to report a comprehensive error.
The text was updated successfully, but these errors were encountered:
#40 - Add error for invalid @EnumMapper default value
#40 - Fix regression on no default value
Selma will now raise a compilation error like that:
Invalid default value for @EnumMapper(from=fr.xebia.extras.selma.beans.EnumA.class, to=fr.xebia.extras.selma.beans.EnumB.class, default="c") fr.xebia.extras.selma.beans.EnumB.c does not exist
Sorry, something went wrong.
No branches or pull requests