File tree Expand file tree Collapse file tree
pdfocr-onnxtr/src/test/java/com/itextpdf/pdfocr/onnxtr Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments