Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

[Severe] Java 8 - Update Required to support Lambdas #3

Open
darylteo opened this issue Mar 9, 2014 · 1 comment
Open

[Severe] Java 8 - Update Required to support Lambdas #3

darylteo opened this issue Mar 9, 2014 · 1 comment
Assignees
Milestone

Comments

@darylteo
Copy link
Owner

darylteo commented Mar 9, 2014

Currently the Functions are abstract classes, and not interfaces. Due to this, we cannot coerce lambas into functions as they only coerce into Functional Interfaces.

Furthermore, there is a currently a bug in how overloaded methods are disambiguated. Until this is fixed, Java is unable to disambiguate between PromiseAction and PromiseFunction as they both accept Strings but return

In the meantime, 1.2.0 will support the following syntax:

    IRCClient client = new IRCClient(this.vertx, nick, name, result -> {
      this.joinChannels(result).then((PromiseAction<List<Message>>) messages -> {
        System.out.println("WHO: " + messages);
      });
    });
@darylteo
Copy link
Owner Author

darylteo commented Aug 5, 2014

Apparently the above issue has been fixed. Revisit.

@darylteo darylteo added this to the 1.2.1 milestone Aug 5, 2014
@darylteo darylteo self-assigned this Aug 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant