NingleXu commented on issue #15369: URL: https://github.com/apache/dubbo/issues/15369#issuecomment-2965243226
I’ve been quite busy lately and may not have time to continue on this immediately. But I’d still like to help solve this when I can. Here’s my current thought process for the fix: 1. **Update `BeanMeta.resolveConstructor`**: Use `RecordUtils.isRecord(type)` to check if the class is a record, and if so, get the canonical constructor via `RecordUtils.getCanonicalConstructor(type)`. 2. **Refactor `BeanArgumentBinder.bind` logic**: For records, instead of using setter-based logic like `current.setValue(...)` and `meta.setValue(...)`, construct the arguments array directly (e.g., `args[i] = ...`) and then invoke the record constructor. By the way, does this approach sound reasonable? Hope this helps if anyone wants to pick it up in the meantime! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org