You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/12/10 13:13:33 UTC
svn commit: r1848575 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java
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)
{