The Heads and Tails of Project Coin

Joseph Darcy, Member of the Oracle Technical Staff, spoke to a very large,
packed conference room in his “The Heads and Tails of Project Coin” (22641) session Tuesday.
Project Coin, a central part of Java 7, was described by Darcy as “a suite of language and
library changes to make things programmers do everyday easier.”

Project Coin makes life easier by removing extra text to make programs more readable;  
encouraging the writing of programs that are more reliable; and by integrating well with past and future changes.
Darcy emphasized that these are small language changes related to specification, implementation and testing;
there are no JVM changes. Project Coin was written to coordinate with forthcoming larger language changes.

Project Coin has strong IDE support:
• IntelliJ IDEA 10.5 and later                                                                                                
• Eclipse 3.7.1 and later                                                                                                                  
• NetBeans 7.0 and later

The six Project Coin features are:  
• Binary literals and underscores in literals                                                                                
• Strings in switch                                                                                                                          
• Diamond                                                                                                                                     
• Multi-catch and more precise rethrow                                                                                
• try-with-resources                                                                                                               
• Varargs warnings

Diamond and varargs warnings enable easier-to-use generics. Multi-catch and try-with-resources allow for more concise error handling. Strings-in-switch and literal improvements result in greater consistency and clarity.

Darcy proceeded to demonstrate five of the six Project Coin features to a highly engaged audience.
Check out his session slides and you can also view this talk @ http://parleys.com/d/2663.

What’s ahead for Project Coin in Java 8? Look for very small language changes on the horizon.

Comments:

You can also view this talk @ http://parleys.com/d/2663

HINT: You should consider including the related Parleys.com talk in this blog post using the "Embed" feature :)

Posted by Stephan Janssen on October 07, 2011 at 06:41 AM PDT #

My $0.02 ...

The Diamond operator is silly and it makes code look messy.

I would have rather had the compiler issue a warning and the the developer IDE could also notify the user if Generics are not supported.

current: List<String> aList = new ArrayList<>();

better: List<String> aList = new ArrayList();

Posted by guest on October 07, 2011 at 07:17 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

javeone logoJavaOne Conference 2013 Content

San Francisco, USA: Sept 28 - Oct 2, 2014

Links

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today