jOOQ / jOOL

jOOλ - The Missing Parts in Java 8 jOOλ improves the JDK libraries in areas where the Expert Group's focus was elsewhere. It adds tuple support, function support, and a lot of additional functionality around sequential Streams. The JDK 8's main efforts (default methods, lambdas, and the Stream API) were focused around maintaining backwards compatibility and implementing a functional API for parallelism.
http://www.jooq.org/products
Apache License 2.0
2.09k stars 168 forks source link

Let Function interfaces implement Serializable #356

Closed vusalalishov closed 5 years ago

vusalalishov commented 5 years ago

Expected behavior and actual behavior:

I use Function interfaces in Apache Wicket application and it would be great if they would be Serializable.

Steps to reproduce the problem:

Try to use one of Function interfaces with Apache Wicket.

Versions:

Is it possible to add Serializable to Function interfaces?

lukaseder commented 5 years ago

Thanks for your suggestion. I would really rather not make anything serializable in jOOλ as we'd have to support serializability, which is such a pain for so little gain... See e.g. http://cr.openjdk.java.net/~briangoetz/amber/serialization.html

The JDK functional interfaces are also not serializable, for the record, so chances are you wouldn't actually gain much.