Are we recommended to use Project Coin new features now?
Max (Weijun) Wang
Weijun.Wang at Sun.COM
Thu Mar 4 15:52:50 PST 2010
On Mar 5, 2010, at 7:04 AM, Joe Darcy wrote:
> 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?
Dev version on
http://smetiste.czech.sun.com/builds/netbeans/trunk/latest_daily/
Max
>
> 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