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

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

@darylteo

Description

@darylteo

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);
      });
    });

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions