JDK 8 and properties

Rémi Forax forax at univ-mlv.fr
Wed Oct 5 09:10:38 PDT 2011

On 10/05/2011 05:26 PM, Mark Thornton wrote:
> On 05/10/11 16:15, Loic Descotte wrote:
>> 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.
> The second answer (from Alex Miller) probably still applies
> http://stackoverflow.com/questions/710266/why-will-there-be-no-native-properties-in-java-7
> Mark Thornton

I agree but if we are able to provide lambdas in Java 8,
properties should be a piece of cake :)

Properties are too big to be just a coin feature and should be a JSR
(or a JEP, I don't know exactly what a JEP is)
so there will be no properties for Java 8, perhaps for Java 9.

 From the technical point of view, properties may be implemented more easily
now because we can use invokedynamic.


More information about the coin-dev mailing list