The tracking issue for the Java side PR.
Java util optional serialization support
See hazelcast/hazelcast#17934 for details.
In relation to payara/Payara#5026 I prepared pull request, that should add serialization support of java.util.Optional.
Motivation:
@CacheResult(name = "not-a-cheap-value-cache")
Optional<NotACheapValue> calculateNotACheapValue(SomeParametersUsedInConstruction p)