pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1829822 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
Date Mon, 23 Apr 2018 06:53:47 GMT
Author: tilman
Date: Mon Apr 23 06:53:47 2018
New Revision: 1829822

URL: http://svn.apache.org/viewvc?rev=1829822&view=rev
Log:
PDFBOX-4195: force early class loading to check if people forgot to use --add-modules javax.xml.bind

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java?rev=1829822&r1=1829821&r2=1829822&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
Mon Apr 23 06:53:47 2018
@@ -156,6 +156,9 @@ public class PreflightDocument extends P
      */
     public void validate() throws ValidationException
     {
+        // force early class loading to check if people forgot to use --add-modules javax.xml.bind
+        // on java 9 or later
+        javax.xml.bind.DatatypeConverter.parseInt("0");
         context.setConfig(config);
         Collection<String> processes = config.getProcessNames();
         for (String name : processes)



Mime
View raw message