lsp4jakarta
lsp4jakarta copied to clipboard
Diagnostic missing for `@PositiveOrZero`
Description:
When using @PositiveOrZero on a List<String> I expect a diagnostic message.
Specification:
@PositiveOrZero annotation can only be used on BigDecimal, BigInteger, byte, short, int, long, float, double (and their respective wrappers) type fields or methods.
Type of language feature proposed:
Select all that apply
- [X] diagnostic
- [ ] quick-fix
- [ ] snippet
- [ ] other, please specify:
- [ ] Must also enable the unit test in BeanValidationTest.java line 172
Actually if you spell it @PostiveOrZero it does not compile but the diagnostic and quick fix are generated.
c.f. https://github.com/OpenLiberty/liberty-tools-intellij/issues/781