[jira] [Created] (FLINK-6874) Static and transient fields ignored for POJOs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-6874) Static and transient fields ignored for POJOs

JIRA jira@apache.org
Greg Hogan created FLINK-6874:
---------------------------------

             Summary: Static and transient fields ignored for POJOs
                 Key: FLINK-6874
                 URL: https://issues.apache.org/jira/browse/FLINK-6874
             Project: Flink
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 1.4.0
            Reporter: Greg Hogan
            Assignee: Greg Hogan
            Priority: Trivial


Update {{dev/types_serialization.html}} to note that static and transient fields are ignored when validating a POJO ({{TypeExtractor#analyzePojo}} calls {{#getAllDeclaredFields}} which ignores transient and static fields) and that {{is}} methods are allowed in place of {{get}} (see {{#isValidPojoField}}).

"All fields in the class (and all superclasses) are either public (and non-final) or have a public getter- and a setter- method that follows the Java beans naming conventions for getters and setters."



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)