liuml07 opened a new pull request, #28175:
URL: https://github.com/apache/flink/pull/28175
## What is the purpose of the change
**This backports PR #28149 to `release-2.1` for FLINK-39672**
Java records have been supported as POJO types since Flink 1.19
(FLINK-32380), but the only doc mention lived on the release-1.20
java_compatibility page and was inadvertently removed on master by FLINK-37339.
## Brief change log
- Restores the FLINK-32380 reference under "Java 17" in
java_compatibility.md and notes that records are handled as POJO types
serialized via their canonical constructor.
- Adds a note in both POJO listings in types_serialization.md that a public
record class is serialized by PojoSerializer; the no-argument constructor and
getter/setter requirements do not apply.
- Mentions in schema_evolution.md that records follow the same POJO schema
evolution rules.
Parallel updates in docs/content.zh.
## Verifying this change
Doc-only change.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes / **no**)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (yes / **no**)
- The serializers: (yes / **no** / don't know)
- The runtime per-record code paths (performance sensitive): (yes / **no**
/ don't know)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / **no** / don't
know)
- The S3 file system connector: (yes / **no** / don't know)
## Documentation
- Does this pull request introduce a new feature? (yes / **no**)
- If yes, how is the feature documented? (**not applicable** / docs /
JavaDocs / not documented)
---
##### Was generative AI tooling used to co-author this PR?
<!--
If generative AI tooling has been used in the process of authoring this PR,
please
change the checkbox below to `[X]` followed by the name of the tool, and
uncomment the
"Generated-by" line. See the ASF Generative Tooling Guidance for details:
https://www.apache.org/legal/generative-tooling.html
You are responsible for the quality and correctness of every change in this
PR
regardless of the tooling used. Low-effort AI-generated PRs will be closed.
See
AGENTS.md for the full guidance.
-->
- [X] Yes (please specify the tool below)
Generated-by: Claude Opus 4.7
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]