RFR: 8367384: The ICC_Profile class may throw exceptions during serialization [v2]

Sergey Bylokhov serb at openjdk.org
Thu Sep 25 03:08:44 UTC 2025


> 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.

Sergey Bylokhov has updated the pull request incrementally with one additional commit since the last revision:

  Add naming conventions used in test file names

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/27326/files
  - new: https://git.openjdk.org/jdk/pull/27326/files/45a6075c..d0b44847

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27326&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27326&range=00-01

  Stats: 9 lines in 1 file changed: 9 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/27326.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27326/head:pull/27326

PR: https://git.openjdk.org/jdk/pull/27326


More information about the client-libs-dev mailing list