Slackbot
11/01/2023, 8:31 PMChris Lee
11/01/2023, 9:14 PMCaused by: java.io.InvalidObjectException: null array
is coming from.Chris Lee
11/01/2023, 9:16 PMRené
11/02/2023, 9:09 AMChris Lee
11/02/2023, 2:06 PMRené
11/02/2023, 2:50 PMChris Lee
11/02/2023, 2:52 PMGradle uses its own optimized serialization mechanism and format to store the configuration cache entries. It automatically serializes the state of arbitrary object graphs. If your tasks hold references to objects with simple state or of supported types you don’t have anything to do to support the serialization.
As a fallback and to provide some aid in migrating existing tasks, some semantics of Java Serialization are supported. But it is not recommended relying on it, mostly for performance reasons.
Chris Lee
11/02/2023, 2:52 PMChris Lee
11/02/2023, 2:54 PMChris Lee
11/02/2023, 2:55 PM.toSaneObject()
adapter, such that the Gradle managed type is limited to shuttling the data between execution scopes, once on the otherside we have a cleaner object to work with.René
11/02/2023, 3:05 PMAnze Sodja
11/05/2023, 11:58 AMList.of()
, Set.of()
, Map.of()
. Since these are part of Java standard library I think we should add them and not fallback to Java Serialization. I opened https://github.com/gradle/gradle/issues/26942, but I am not working on cc, so cc team will triage it