Skip to content

Commit f3fa7e6

Browse files
committed
Add exception for Temurin 8 in OnnxTRCmykIntegrationTest
It does not support CMYK for JPEG either...
1 parent e83596d commit f3fa7e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pdfocr-onnxtr/src/test/java/com/itextpdf/pdfocr/onnxtr/OnnxTRCmykIntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ private static boolean isFixedInJdk() {
140140
//Fixed CMYK bug https://bugs.openjdk.org/browse/JDK-8274735 for openJDK:
141141
//jdk8 from 351 onwards, for jdk11 from 16 onwards and for jdk17 starting from 4.
142142
//Amazon corretto jdk started support CMYK for JPEG from 11 version.
143+
//Temurin 8 does not support CMYK for JPEG either.
143144
String versionStr = System.getProperty("java.version");
144145
String vendorStr = System.getProperty("java.vendor");
145146
boolean isFixed = false;
@@ -149,7 +150,7 @@ private static boolean isFixedInJdk() {
149150

150151
switch (majorVer) {
151152
case 8:
152-
if ("Amazon.com Inc.".equals(vendorStr)) {
153+
if ("Amazon.com Inc.".equals(vendorStr) || "Temurin".equals(vendorStr)) {
153154
return false;
154155
}
155156

0 commit comments

Comments
 (0)