-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iterating over a list of enums generated by Qute Namespace Extensions no longer works #21008
Milestone
Comments
/cc @mkouba |
Also seems to fail with |
mkouba
added a commit
to mkouba/quarkus
that referenced
this issue
Oct 27, 2021
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Nov 2, 2021
- resolves quarkusio#21008 (cherry picked from commit 5a3e0b0)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
We leverage Qute Namespace extensions to populate a list or dropdown with values from an enum. See https://quarkus.io/version/main/guides/qute-reference#namespace_extension_methods
However this now results in an exception, also when we use checked templates.
It does work correctly when you just want to render the enums, but as soon as you call a property from the enum it fails. It looks like Qute incorrectly tries to find this (virtual) method on the Set or List instance instead of the enum in the collection.
This used to work up until version 2.4.0.CR1 but just failed on the latest snapshot build from the main branch.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
Sample project:
quarkus-qute-enum.zip
The text was updated successfully, but these errors were encountered: