src/java.base/share/classes/java/lang/invoke/SerializedLambda.java
changeset 50725 d5c59fab1bdb
parent 47216 71c04702a3d5
child 51118 2467bd84c59b
--- a/src/java.base/share/classes/java/lang/invoke/SerializedLambda.java	Fri Jun 22 19:04:16 2018 +0200
+++ b/src/java.base/share/classes/java/lang/invoke/SerializedLambda.java	Fri Jun 22 12:05:36 2018 -0700
@@ -53,6 +53,12 @@
  * that the properties of the {@code SerializedLambda} are consistent with a
  * lambda actually captured by that class.
  *
+ * <p>The identity of a function object produced by deserializing the serialized
+ * form is unpredictable, and therefore identity-sensitive operations (such as
+ * reference equality, object locking, and {@code System.identityHashCode()} may
+ * produce different results in different implementations, or even upon
+ * different deserializations in the same implementation.
+ *
  * @see LambdaMetafactory
  * @since 1.8
  */