On Thu, 28 Aug 2025 18:07:56 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> We have a few places in the cmm code where the fast-code-path assumes that > standard buffered images with type such as TYPE_INT_ARGB_PRE use our private > raster implementation such as IntegerComponentRaster, which is not > necessarily true. Casting to these private raster types can result in a > ClassCastException. > > The patch will detect such custom images and fall back to the slow path for > conversion. This pull request has now been integrated. Changeset: 12e6a0b6 Author: Sergey Bylokhov <s...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/12e6a0b6d0086caf156cf5513a604320c619b856 Stats: 177 lines in 2 files changed: 170 ins; 0 del; 7 mod 8366208: Unexpected exception in sun.java2d.cmm.lcms.LCMSImageLayout Reviewed-by: aivanov, prr ------------- PR: https://git.openjdk.org/jdk/pull/26994