Skip to content

Casting in Qute? #34116

Answered by mkouba
GregJohnStewart asked this question in Q&A
Jun 18, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Ok, so this is a build time validation error. We don't know the runtime type of the object returned from the getCheckedOutFor() method at this time. You can try to exclude this particular method from validation by means of quarkus.qute.type-check-excludes=org.acme.CheckoutFor.getEntity. It should resolve just fine at runtime.

Replies: 1 comment 2 replies

Comment options

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

mkouba Jun 19, 2023
Collaborator

Answer selected by GregJohnStewart
@GregJohnStewart
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/qute The template engine
2 participants