updated syntax for method references

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri Mar 2 03:05:04 PST 2012

I recently pushed a changeset to remove support for '#'-based syntax for 
_method references_ (the commit message is confusing, I pushed too fast 
;-)). This means that the long standing syntax for method references:

new Foo()#bar

is now not supported anymore. Instead, the compiler accepts a similar 
infix variant, where '#' is replaced by '::' - this has been available 
for quite some time, and it is also the syntax used in all recent 

new Foo()::bar

The syntax discussion regarding method references is still ongoing with 
the EG - so this push doesn't mean we are 100% committed to the '::' 
syntax - on the other hand we are fully committed _not to_ have the '#' 
syntax, as we envisage better usages for such token in future releases.


More information about the lambda-dev mailing list