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 negative @Size values gracefully #28

Open
jayasuryat opened this issue Apr 13, 2024 · 0 comments
Open

Handle negative @Size values gracefully #28

jayasuryat opened this issue Apr 13, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@jayasuryat
Copy link
Owner

Right now if a @Size annotation has a negative value, then there is an exception thrown in the object construction step
[ksp] java.lang.IllegalArgumentException: Requested character count -n is less than zero.

Need to handle this more gracefully, by probably printing a more explanatory error message.

Could also consider creating a lint rule for this.

@jayasuryat jayasuryat added the enhancement New feature or request label Apr 13, 2024
@jayasuryat jayasuryat added the bug Something isn't working label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant