aspose file tools*
The moose likes Features new in Java 7 and the fly likes Does Java 7 introduces a better way to do 'getter/setter' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "Does Java 7 introduces a better way to do Watch "Does Java 7 introduces a better way to do New topic
Author

Does Java 7 introduces a better way to do 'getter/setter'

victor fu
Greenhorn

Joined: Apr 09, 2012
Posts: 2
I feel the 'getter and setter' in current Java is cumbersome, and other language already has better way to handle that, Does Java 7 has new feature for that? Thanks
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

In short no, the properties style syntax that you'll find in Groovy or C# was not accepted for Java 7 (or 8 for that matter). Not necessarily a bad thing mind you (think about how it changes default access behaviour / programming idioms) :-)


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does Java 7 introduces a better way to do 'getter/setter'
 
Similar Threads
Eclipse training
Doubt in Java Beans
Transient Annotation
checkbox, arraylist
HashMap bean with generic type parameters