With version 2.1 of krasa-jaxb-tools, NotNull annotations were applied as (for example):
@NotNull(message = "Factura.infoTributaria {javax.validation.constraints.NotNull.message}")
Now, with version 2.2, NotNull annotations are applied as:
@NotNull(message = "Factura.infoTributaria {NotNull.message}")
When using v2.2 with Jaxb, this seems to be OK.
If I build with:
With version 2.1 of krasa-jaxb-tools, NotNull annotations were applied as (for example):
@NotNull(message = "Factura.infoTributaria {javax.validation.constraints.NotNull.message}")
Now, with version 2.2, NotNull annotations are applied as:
@NotNull(message = "Factura.infoTributaria {NotNull.message}")
When using v2.2 with Jaxb, this seems to be OK. If I build with:
and perform validation using:
then I correctly get the error message, e.g.: "Factura.infoTributaria must not be null"
However if using v2.2 with Jakarta:
and perform validation using:
then the error message is not interpolated. e.g. I erronously get an error message "Factura.infoTributaria {NotNull.message}"
Proposed Fix:
Reverting to the previous behaviour of using a full class name for @NotNull annotations does work correctly for both javax and jakarta.