[
https://issues.apache.org/jira/browse/FLINK-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Metzger updated FLINK-1654:
----------------------------------
Fix Version/s: 0.9
> Wrong scala example of POJO type in documentation
> -------------------------------------------------
>
> Key: FLINK-1654
> URL: https://issues.apache.org/jira/browse/FLINK-1654
> Project: Flink
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 0.9
> Reporter: Chiwan Park
> Assignee: Chiwan Park
> Priority: Trivial
> Fix For: 0.9
>
>
> In
> [documentation|https://github.com/chiwanpark/flink/blob/master/docs/programming_guide.md#pojos],
> there is a scala example of POJO
> {code}
> class WordWithCount(val word: String, val count: Int) {
> def this() {
> this(null, -1)
> }
> }
> {code}
> I think that this is wrong because Flink POJO required public fields or
> private fields with getter and setter. Fields in scala class is private in
> default. We should change the field declarations to use `var` keyword or
> class declaration to case class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)