Author jamesmudd
Recipients jamesmudd
Date 2019-03-27.20:14:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It would be nice in Java 8 onward if Python functions could be used where functional interfaces specified by lambdas (or method refs) can be used in Java.

Examples would be in streams e.g.

    filtered_list =

See attached example for full code.

This fails at them moment because although Predicate is a @FunctionalInterface it also declares default methods. which results in it not being coerced in PyFunction.__tojava__(Class<?>)

Probably for after 2.7.1 it might be easier to implement when default methods can be introspected via reflection.
Date User Action Args
2019-03-27 20:14:11jamesmuddsetrecipients: + jamesmudd
2019-03-27 20:14:11jamesmuddsetmessageid: <>
2019-03-27 20:14:11jamesmuddlinkissue2752 messages
2019-03-27 20:14:11jamesmuddcreate