Skip to content
Discussion options

You must be logged in to vote

Hi Luca, so first of all the validation annotations such as @NotNull are not supported in Qute type-safe templates. Do you use any library that would handle those annotations during the compile time, i.e. modify the resulting bytecode?

In any case, the error message is clear that @Valid com.zucchetti.mercurio.entity.Release class is not available and this is due to the fact that Qute build step is using org.jboss.jandex.Type.toString() here, and toString() includes type annotations - hence the @Valid.

I'd recommend to use a separate class for @CheckedTemplate, i.e. something like:

@RequestScoped
@Slf4j
public class FTPReleaseUploadEventManagerBean {

      @CheckedTemplate(basePath = "")
…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mkouba
Comment options

mkouba Oct 12, 2022
Collaborator

@gsmet
Comment options

@FroMage
Comment options

FroMage Oct 12, 2022
Collaborator

@gsmet
Comment options

@gsmet
Comment options

Answer selected by luca-bassoricci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants