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.

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

Commit messages:
 - Update FilterSemiCustomImages.java
 - 8366208: Unexpected exception in sun.java2d.cmm.lcms.LCMSImageLayout

Changes: https://git.openjdk.org/jdk/pull/26994/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26994&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8366208
  Stats: 174 lines in 2 files changed: 167 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/26994.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26994/head:pull/26994

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

Reply via email to