Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consider supporting method references? #89

Closed
cherrydev opened this issue Feb 20, 2015 · 6 comments
Closed

Consider supporting method references? #89

cherrydev opened this issue Feb 20, 2015 · 6 comments

Comments

@cherrydev
Copy link

Since method references ( object::method ) are closely related to lambda expressions, have you considered supporting them in retrolambda?

@evant
Copy link
Owner

evant commented Feb 21, 2015

You should ask this under retrolamda. This is only for the gradle plugin. They should already be supported though.

@cherrydev
Copy link
Author

Thanks!

@cherrydev
Copy link
Author

According to this issue: luontola/retrolambda#17 method references SHOULD work. When I tried it, I got a NPE at the site of the assignment:

private Runnable myThing = mField::method

@cherrydev cherrydev reopened this Feb 21, 2015
@evant
Copy link
Owner

evant commented Feb 21, 2015

You should open an issue there then. It's very unlikely this plugin is the cause. You should try to minimize it to a small sample project that reproduces it.

@cypressious
Copy link
Contributor

I'm pretty sure method references already work. Make sure mField is not null itself.

@evant
Copy link
Owner

evant commented Mar 29, 2015

I'm going to assume that there is no issue here.

@evant evant closed this as completed Mar 29, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants