Are we recommended to use Project Coin new features now?

Joe Darcy Joe.Darcy at Sun.COM
Thu Mar 4 15:04:27 PST 2010


Max (Weijun) Wang wrote:
> Now that even NetBeans starts to complain about "redundant type arguments in new expression (use diamond operator instead)"...
>   

Which version of NetBeans are you running?

The JDK 7 build has been prepped to be able to use new language 
features; the sources are compiled under "-source 7" where appropriate, 
which includes the "jdk" repository.  In the case of diamond, there are 
some planned changes to the inference algorithm, but nearly all actual 
uses of diamond in practice should be unaffected.  I would be surprised 
if Project Coin's strings in switch and enhanced literal support change 
very much in the future.

So in new code or code where sharing patches with earlier releases is 
not a concern, I think the diamond features would be fine to use today.  
At some point in the future, there may be a systemic and automated 
effort to, say, diamond-ify portions of the JDK code base.

-Joe


More information about the jdk7-dev mailing list