-
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
Qute template records: fix the way the canonical constructor is found #42439
Conversation
mkouba
commented
Aug 9, 2024
- also fix the problem with compact record constructor
- resolves Qute template records: fix the way the canonical constructor is found #42411
Type[] componentTypes = recordClass.recordComponents().stream().map(RecordComponentInfo::type) | ||
.toArray(Type[]::new); | ||
MethodInfo canonicalConstructor = recordClass.method(MethodDescriptor.INIT, componentTypes); | ||
MethodInfo canonicalConstructor = recordClass.method(MethodDescriptor.INIT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot use the new ClassInfo#canonicalRecordConstructor()
here because we need to get this into 3.8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too bad :-)
...ons/qute/deployment/src/test/java/io/quarkus/qute/deployment/records/TemplateRecordTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one question about the commented assertion.
This comment has been minimized.
This comment has been minimized.
- also fix the problem with compact record constructor - resolves quarkusio#42411
Status for workflow
|