You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2020/07/24 07:28:00 UTC

[jira] [Commented] (FLINK-18696) Java 14 Records are not recognized as POJOs

    [ https://issues.apache.org/jira/browse/FLINK-18696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17164216#comment-17164216 ] 

Timo Walther commented on FLINK-18696:
--------------------------------------

Big +1. Support for immutable types is long overdue. In Table API we support them already. We should make the behavior consistent here.

> 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: Major
>              Labels: 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
(v8.3.4#803005)