pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1843021 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java
Date Sat, 06 Oct 2018 16:05:50 GMT
Author: tilman
Date: Sat Oct  6 16:05:50 2018
New Revision: 1843021

URL: http://svn.apache.org/viewvc?rev=1843021&view=rev
Log:
PDFBOX-4163: temporarly saving ARGB images into jpeg on jdk11

Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java?rev=1843021&r1=1843020&r2=1843021&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java
Sat Oct  6 16:05:50 2018
@@ -61,6 +61,14 @@ public class ValidateXImage
         assertEquals(ximage.getWidth(), ximage.getImage().getWidth());
         assertEquals(ximage.getHeight(), ximage.getImage().getHeight());
 
+        if ("jpg".equals(format) &&
+            System.getProperty("java.specification.version").startsWith("11") &&
+            ximage.getImage().getType() == BufferedImage.TYPE_INT_ARGB)
+        {
+            // test doesn't work on jdk11, temporarly disabled
+            // https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8211748
+            return;
+        }
         boolean writeOk = ImageIO.write(ximage.getImage(),
                 format, new ByteArrayOutputStream());
         assertTrue(writeOk);



Mime
View raw message