Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个 Kotlin lambda,例如。
{ a -> a.b }
...我知道这可以传递给 Java Serializable 接口,例如:
interface I extends Serializable { public int f(T t); }
但是,lambda 的实际类型不是 SerializedLambda。
是否可以从 Kotlin lambda 创建真正的 SerializedLambda?
(原因是为了兼容JINQ)