1

If I have a Kotlin lambda, eg.

{ a -> a.b }

...I know this can be passed into a Java Serializable interface, eg:

interface I extends Serializable {
  public int f(T t);
}

However, the actual type of the lambda is not SerializedLambda.

Is it possible to create a genuine SerializedLambda from a Kotlin lambda?

(The reason is for compatibility with JINQ)

chris
  • 1,731
  • 4
  • 26
  • 33

0 Answers0