lsp4jakarta icon indicating copy to clipboard operation
lsp4jakarta copied to clipboard

Diagnostic missing for `@PositiveOrZero`

Open turkeylurkey opened this issue 1 year ago • 2 comments

Description:

When using @PositiveOrZero on a List<String> I expect a diagnostic message. image

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

turkeylurkey avatar May 27 '24 22:05 turkeylurkey

Actually if you spell it @PostiveOrZero it does not compile but the diagnostic and quick fix are generated.

turkeylurkey avatar May 27 '24 22:05 turkeylurkey

c.f. https://github.com/OpenLiberty/liberty-tools-intellij/issues/781

turkeylurkey avatar May 27 '24 22:05 turkeylurkey