[jdk11u-dev] RFR: 8346465: Add a check in setData() to restrict the update of Built-In ICC_Profiles

Jan Kratochvil jkratochvil at openjdk.org
Fri Sep 5 18:39:30 UTC 2025


Built-in singleton ICC_Profiles could be modified using setData(). Throw an exception for such an attempt.
A testcase is included.
 It is not a clean backport - it has to change return switch expressions to their old format and there are also other 2 minor conflicts.
This backport is authored by Anton Voznia, I am only submitting it. Anton Voznia is an Azul employee so he should be covered by Azul OCA. Anton Voznia has not signed a personal OCA from Oracle.
It requires https://github.com/openjdk/jdk11u-dev/pull/3089 as a prerequisite.

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

Depends on: https://git.openjdk.org/jdk11u-dev/pull/3089

Commit messages:
 - 8346465: Add a check in setData() to restrict the update of Built-In ICC_Profiles

Changes: https://git.openjdk.org/jdk11u-dev/pull/3090/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3090&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346465
  Stats: 236 lines in 7 files changed: 208 ins; 5 del; 23 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/3090.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3090/head:pull/3090

PR: https://git.openjdk.org/jdk11u-dev/pull/3090


More information about the jdk-updates-dev mailing list