pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1602326 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
Date Fri, 13 Jun 2014 02:59:13 GMT
Author: jahewson
Date: Fri Jun 13 02:59:12 2014
New Revision: 1602326

URL: http://svn.apache.org/r1602326
Log:
PDFBOX-2132: ReflectiveOperationException isn't available in JDK 6

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java?rev=1602326&r1=1602325&r2=1602326&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java Fri Jun
13 02:59:12 2014
@@ -114,11 +114,21 @@ public class PDFStreamEngine
                     OperatorProcessor processor = (OperatorProcessor) cls.newInstance();
                     registerOperatorProcessor(operator, processor);
                 }
-                catch (ReflectiveOperationException e)
+                catch (ClassNotFoundException e)
                 {
                     // should not happen
                     throw new RuntimeException(e);
                 }
+                catch (InstantiationException e)
+                {
+                  // should not happen
+                  throw new RuntimeException(e);
+                }
+                catch (IllegalAccessException e)
+                {
+                  // should not happen
+                  throw new RuntimeException(e);
+                }
             }
         }
     }



Mime
View raw message