[ https://issues.apache.org/jira/browse/PDFBOX-2358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138135#comment-14138135 ]
John Hewson edited comment on PDFBOX-2358 at 9/17/14 10:39 PM: --------------------------------------------------------------- I've also removed as may uses of PDFBox's ResourceLoader as possible, because as you point out it is "obscure and dangerous". It is now only used by PDFStreamEngine and its subclasses for loading .properties files. However, this usage is itself not OSGI compatible as it is designed to by used by subclasses in a different module, where loading resources from the "pdfbox" module is not OSGI friendly. This looks like the final straw for the PDFStreamEngine .properties mechanism, which was already a candidate for removal. was (Author: jahewson): I've also removed as may uses of PDFBox's ResourceLoader as possible, because as you point out it is "obscure and dangerous". It is now only used by PDFStreamEngine and its subclasses for loading .properties files. However, this usage is itself not OSGI compatible as it is designed to by subclasses by classes in a different module, where loading resources from the "pdfbox" module is not OSGI friendly. This looks like the final straw for the PDFStreamEngine .properties mechanism, which was already a candidate for removal. > ExternalFonts uses classloader of class in font-box > --------------------------------------------------- > > Key: PDFBOX-2358 > URL: https://issues.apache.org/jira/browse/PDFBOX-2358 > Project: PDFBox > Issue Type: Bug > Affects Versions: 2.0.0 > Reporter: Cornelis Hoeflake > Assignee: John Hewson > > ExternalFonts loads some default fonts via the > org.apache.fontbox.util.ResourceLoader. That resourceloader uses it's own > classloader (ResourceLoader.class.getClassLoader()) for loading the given > resource. > The problem is that the resource is in the PDFBox project and the > ResourceLoader in the FontBox. In an OSGI environment this is a problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)