Integrated: 8367384: The ICC_Profile class may throw exceptions during serialization
Sergey Bylokhov
serb at openjdk.org
Fri Oct 3 17:52:57 UTC 2025
On Tue, 16 Sep 2025 23:51:06 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> Additional checks were recently added to ICC_Profile (see [JDK-8347377](https://bugs.openjdk.org/browse/JDK-8347377)). As a result, objects previously stored as valid profiles may now throw an IllegalArgumentException during serialization. Discussion about serialization was started in https://github.com/openjdk/jdk/pull/23044 but it seems at the end non-serialization related check was [verified](https://github.com/openjdk/jdk/pull/23044/commits/a5201b5f353e8957a1274261372496768edbc7a2). =(
>
> The patch itself is simple, but I found that we do not have good test coverage in this area. So I added two tests to cover all possible variants specified by the serialization spec.
This pull request has now been integrated.
Changeset: 0e98ec36
Author: Sergey Bylokhov <serb at openjdk.org>
Committer: Harshitha Onkar <honkar at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0e98ec36623d5d83172209058574a97bab1d6038
Stats: 205 lines in 25 files changed: 173 ins; 14 del; 18 mod
8367384: The ICC_Profile class may throw exceptions during serialization
Reviewed-by: honkar, prr
-------------
PR: https://git.openjdk.org/jdk/pull/27326
More information about the client-libs-dev
mailing list