Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-18696

Java 14 Records are not recognized as POJOs

    XMLWordPrintableJSON

Details

    Description

      Having a record (https://openjdk.java.net/jeps/359) such as:

      public record Simple(int id, String name) { }
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rmetzger Robert Metzger
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: