[OpenJDK 2D-Dev] RFR: 8263622: The java.awt.color.ICC_Profile#setData invert the order of bytes for the "head" tag

Sergey Bylokhov serb at openjdk.java.net
Tue Mar 16 21:44:27 UTC 2021

The root cause is using the wrong endian, the ICC profile uses big-endian notation. We even have special methods to convert the data, but for some reason, their usage was dropped in the JDK-6523398.


Commit messages:
 - test update
 - reformat
 - use built-in AdjustEndiannessXX
 - Initial version

Changes: https://git.openjdk.java.net/jdk/pull/3037/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3037&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8263622
  Stats: 132 lines in 2 files changed: 88 ins; 35 del; 9 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3037.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3037/head:pull/3037

PR: https://git.openjdk.java.net/jdk/pull/3037

More information about the 2d-dev mailing list