[ 
https://issues.apache.org/jira/browse/PDFBOX-2379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14285414#comment-14285414
 ] 

Matej Pivoluska edited comment on PDFBOX-2379 at 1/21/15 9:45 AM:
------------------------------------------------------------------

Before posting a new request, I would like to think a bit about the possible 
design. I have some OSGi background and I'm aware of the cost of properly using 
classloaders, explicitly exporting classes, declaring dependencies... 

Do we know why this OSGi-related problem was resolved by throwing an exception 
instead of keeping the glyphlist_ext property intact and simply documenting - 
use GlyphList.DEFAULT.addGlyphs(Properties) when working in OSGi or other 
complex application server environment where you load PDFBOX classes (not just 
instantiate objects) possibly multiple times with different configurations? 


was (Author: mato):
Before posting a new request, I would like to think a bit about the possible 
design. I have some OSGi background and I'm aware of the cost of properly using 
classloaders, explicitly exporting classes, declaring dependencies... 

Do we know why this OSGi problem was resolved by throwing an exception instead 
of keeping the glyphlist_ext property intact and simply documenting - use 
GlyphList.DEFAULT.addGlyphs(Properties) when working in OSGi or other complex 
application server environment where you load PDFBOX classes (not just 
instantiate objects) possibly multiple times with different configurations? 

> glyphlist_ext is not OSGI compatible
> ------------------------------------
>
>                 Key: PDFBOX-2379
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2379
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>            Assignee: John Hewson
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> The system property "glyphlist_ext" used in GlyphList is not OSGI compatible 
> (see  PDFBOX-2358) as it loads resources from an external module. The 
> mechanism is unsafe and should be replaced with a simple static method, e.g. 
> GlyphList.addGlyphs(Properties).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to