pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1848575 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java
Date Mon, 10 Dec 2018 13:13:33 GMT
Author: tilman
Date: Mon Dec 10 13:13:33 2018
New Revision: 1848575

URL: http://svn.apache.org/viewvc?rev=1848575&view=rev
Log:
PDFBOX-4400: don't use getClassLoader() to get resources because of problems with jlink

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java?rev=1848575&r1=1848574&r2=1848575&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java
Mon Dec 10 13:13:33 2018
@@ -46,11 +46,10 @@ public final class GlyphList
      */
     private static GlyphList load(String filename, int numberOfEntries)
     {
-        ClassLoader loader = GlyphList.class.getClassLoader();
-        String path = "org/apache/pdfbox/resources/glyphlist/";
+        String path = "/org/apache/pdfbox/resources/glyphlist/";
         try
         {
-            return new GlyphList(loader.getResourceAsStream(path + filename), numberOfEntries);
+            return new GlyphList(GlyphList.class.getResourceAsStream(path + filename), numberOfEntries);
         }
         catch (IOException e)
         {



Mime
View raw message