Problem with method references
john at milsson.nu
Fri Jan 14 03:59:31 PST 2011
On Fri, Jan 14, 2011 at 11:54 AM, Stephen Colebourne
<scolebourne at joda.org> wrote:
> On 14 January 2011 09:58, Peter Levart <peter.levart at marand.si> wrote:
>> I don't know if we should allways reject #methodName in static context. Only if it refers to instance method. If it refers to static method, it should be a shourtcut for:
>> analogous to static method invocation.
> I would say that references to a static method should require the
> class name. Its clearer that way.
Doesn't this argument also apply to calls to static methods? Either in
scope or imported?
In the name of consistency the rules should probably be the same for
references as for calls.
More information about the lambda-dev