You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "kush2439p (via GitHub)" <gi...@apache.org> on 2026/08/20 10:40:00 UTC
[PR] Support Java records in binary marshaller [ignite]
kush2439p opened a new pull request, #13503:
URL: https://github.com/apache/ignite/pull/13503
## Summary
Routes Java records through Ignite's optimized Java-serialization path. This avoids attempting to obtain unsafe field offsets for immutable record components, which current JDKs reject.
## Changes
- Detect records with `Class.isRecord()`.
- Use `OptimizedMarshaller` for records.
- Include records in the fallback-serialization warning.
- Add a Java 17 serializable-record round-trip regression test.
## Verification
- Added `BinaryMarshallerSelfTest.testRecord`.
- CI pending; local execution was unavailable because the working drive is full.
Closes #13286
--
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-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Support Java records in binary marshaller [ignite]
Posted by "zstan (via GitHub)" <gi...@apache.org>.
zstan commented on PR #13503:
URL: https://github.com/apache/ignite/pull/13503#issuecomment-5789869093
@kush2439p thank you for your effort, i create a simple : https://issues.apache.org/jira/browse/IGNITE-29068
test in PR is not enough, we need additional test that highlights an action\API execution that is not working before your change and fixed after, I try to call records through Compute API and seems all ok there ..
```
record Person1 (String name, String address) {}
Person1 person = new Person1("John Doe", "100 Linda Ln.");
cache.put(person, 2);
```
seems also work properly well
--
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-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Support Java records in binary marshaller [ignite]
Posted by "kush2439p (via GitHub)" <gi...@apache.org>.
kush2439p commented on PR #13503:
URL: https://github.com/apache/ignite/pull/13503#issuecomment-5354826600
@zstan This supersedes #13391 and follows the requested direction: it targets `master`, uses direct `Class.isRecord()` detection, and adds a static Java 17 regression test. I do not have an Apache JIRA account to create the required ticket; could you please advise the appropriate JIRA key (or create one) so I can update the title and link it? The corresponding GitHub report is #13286.
--
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-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org