rxjava-promises icon indicating copy to clipboard operation
rxjava-promises copied to clipboard

[Severe] Java 8 - Update Required to support Lambdas

Open darylteo opened this issue 10 years ago • 1 comments

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 avatar Mar 09 '14 03:03 darylteo

Apparently the above issue has been fixed. Revisit.

darylteo avatar Aug 05 '14 10:08 darylteo