Chesnay Schepler created FLINK-31919: ----------------------------------------
Summary: Skip ClosureCleaner if object can be serialized Key: FLINK-31919 URL: https://issues.apache.org/jira/browse/FLINK-31919 Project: Flink Issue Type: Sub-task Components: API / Core Reporter: Chesnay Schepler Assignee: Chesnay Schepler Fix For: 1.18.0 Given an object the ClosureCleaner currently recursively digs into every non-static/transient field of the given object. This causes a problem on Java 17 because these reflective accesses all need to be explicitly allowed beforehand. Instead, we could limit the CC to objects that fail serialization, because if something can be serialized there isn't anything for the CC to do. This should allow us to avoid a lot of unnecessary reflection accesses to immutable JDK classes, like Strings/BigDecimals etc etc. -- This message was sent by Atlassian Jira (v8.20.10#820010)