JDK 8 and properties

Serafin Sedano serafin.sedano at abiquo.com
Wed Oct 5 08:22:52 PDT 2011


I totally agree with the need for such a feature.

In ruby there is the attr_accessor that eases the reading of a class.



2011/10/5 Loic Descotte <loic.descotte at gmail.com>

> Hi all,
> I was wondering if coin 2 (in JDK 8) would possibly include a "properties"
> feature, to avoid writing getters and setters for all fields in our
> classes.
> When we have large classes with a lot of fields, getters/setters make the
> code very hard to read. If a field is returned with something else that a
> simple "get", we risk to miss it be cause it's hidden among the others
> getters and setters.
> C# properties or the one introduced with Kotlin language would be great!
> After lambda project, I think it would be the only little thing missing to
> java 8 to become really great and more pleasant to use.
> Do you have any status about such a feature?
> Thanks
> Loic
> Ps : excuse me if it's not the right mailing list for this kind of question

More information about the coin-dev mailing list