JDK 8 and properties

Brian Goetz brian.goetz at oracle.com
Wed Oct 5 11:50:49 PDT 2011

>> 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

In fact, both answers still apply.

Part of the problem is everyone says "we want properties", but when you 
start digging, you find that it is like the blind men and the elephant 
-- everyone has a different idea of what it should be, and many are 
incompatible.  So even if 100% of the community thinks they want 
properties, if we actually did it, a significant fraction of those would 
be disappointed that we "waited fifteen years and then got it wrong."

With regard to Coin, properties are too big to be Coin features, it 
would require a separate JSR.  And, there's no way it could happen for 
8, even if we thought there was the right design out there (of which we 
are still not convinced.)  We've got too many other big language things 
on the docket for 8; that plate is full.

More information about the coin-dev mailing list