[ 
https://issues.apache.org/jira/browse/FLINK-18696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martijn Visser closed FLINK-18696.
----------------------------------
    Resolution: Duplicate

This was fixed by FLINK-32380 in 1.19.0, which added record support to the 
PojoTypeInfo/PojoSerializer, including state migration from POJOs to records. 
On the Table API side, FLINK-39008 (2.3.0) made record extraction independent 
of compiler flags. Closing as a duplicate of FLINK-32380.

> Java 14 Records are not recognized as POJOs
> -------------------------------------------
>
>                 Key: FLINK-18696
>                 URL: https://issues.apache.org/jira/browse/FLINK-18696
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / Type Serialization System
>            Reporter: Robert Metzger
>            Priority: Not a Priority
>              Labels: auto-deprioritized-major, auto-deprioritized-minor, 
> starter
>
> Having a record (https://openjdk.java.net/jeps/359) such as:
> {code}
> public record Simple(int id, String name) { }
> {code}
> Leads to this log message: "class de.robertmetzger.TableApiSql$Simple does 
> not contain a setter for field id"
> I believe the PojoSerializer should be able to use records.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to