Default Methods Syntax Flag Day
Mike Duigou
mike.duigou at oracle.com
Tue Nov 6 15:45:27 PST 2012
The changes have been pushed to both langtools and jdk repos so the syntax conversion is now complete.
Two issues to be aware of:
- A compiler issue was encountered where, in a small number of cases, functional interfaces were not recognized and disallowed assignment of method references or lambdas. This bug will likely be fixed shortly (if you even run into it at all).
- IDEs such as NetBeans and IntelliJ don't yet support the new syntax. We expect that both will soon offer updated versions that convert to the new syntax.
Unless you are planning to submit patches to the lambda/jdk repo it might be best to wait a few days for everything to stabilize.
Mike
On Nov 6 2012, at 10:26 , Mike Duigou wrote:
> Hello Lambdoners!
>
> The day has finally come. Today I will be attempting to convert the lambda JDK repo to use the latest EDR syntax.
>
> public void method() default { foo(); }
>
> becomes
>
> public default void method() { foo(); }
>
> I expect to commit the change around Wednesday noon PST
>
> Mike
>
More information about the lambda-dev
mailing list