-
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
Quarkus Qute broken in 3.16 #44797
Comments
/cc @mkouba (qute) |
Hi @Madere and thanks for the report. Would it be possible to extract the relevant code in a minimal reproducer project? It's hard to guess without something concrete in hand. |
Hi @mkouba find attached a zip file with a short demo project. Zipfile removed. Compiled with Java-21 usage: The Html ouput is in: pages/schedules.html |
Thanks. I'll take a look. |
Ok, found it. It's a regression caused by #43308. I've sent a PR with a fix. This is the fix: https://github.com/quarkusio/quarkus/pull/44817/files#diff-172c5b92001e43b2cc32c9a8025b0730084d360fa398a1600dc4e4a8b88cc3d3R65 🤦 😦 Workarounds exists: do not use the reflection fallback value resolver, but instead:
|
Hi @mkouba , thanks. |
- fixes quarkusio#44797 (cherry picked from commit 06f4006)
Describe the bug
Hi,
we used Quarkus Qute 3.15.2 and all worked fine. Since 3.16.1 we have an issue with calling a Java method. The parameter in the Java method is always the same value where in the HTML file the field has the correct value within a loop.
Html fragments:
In the browser console logging, the value for project.name is correct for each project in 'schedules.projects'
Java Code:
The java logging shows always the first project name from the loop in the html code. Anyone an idea what is going on? And how to solve this?
Expected behavior
That the loop works the same as in Quarkus version 3.15
Actual behavior
The value of the parameter in the Java method is always of the first entry in the loop.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.15 versus 3.16
Build tool (ie. output of
mvnw --version
orgradlew --version
)mvn
Additional information
No response
The text was updated successfully, but these errors were encountered: