Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.3.7
-
None
-
None
Description
Seems like the default method doesn't get called, and a stub noop impl is used.
import java.util.function.Consumer def consume(Consumer<String> consumer) { consumer .andThen({ println "2" }) .accept("foo") } // Works consume(new Consumer<String>() { void accept(String s) { println "1" } }) // Fails, andThen() returns null consume({ println "1" })