uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Comment Edited] (UIMA-5553) uv3: Ability to set just a parent classloader, but not classpath
Date Fri, 08 Sep 2017 21:12:00 GMT

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

Marshall Schor edited comment on UIMA-5553 at 9/8/17 9:11 PM:
--------------------------------------------------------------

Are you asking for a method like resMgr.setExtensionClassPath(ClassLoader parent, boolean
resolveResource) that acts just like the one with the 3 args, but doesn't give the warning
message?

These calls create a new instance of a subtype of the URLClassLoader (typically initialized
with the classpath supplied).  


was (Author: schor):
Are you asking for a method like resMgr.setExtensionClassPath(ClassLoader parent, boolean
resolveResource) that acts just like the one with the 3 args, but doesn't give the warning
message?

> uv3: Ability to set just a parent classloader, but not classpath
> ----------------------------------------------------------------
>
>                 Key: UIMA-5553
>                 URL: https://issues.apache.org/jira/browse/UIMA-5553
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 3.0.0SDK-beta
>            Reporter: Richard Eckart de Castilho
>
> uimaFIT tries to set a custom classloader on a resource manager - but it does so without
adding any additional classpath entries:
> {noformat}
>           ResourceManager resMgr = UIMAFramework.newDefaultResourceManager();
>           resMgr.setExtensionClassPath(ClassUtils.getDefaultClassLoader(), "", true);
>           return resMgr;
> {noformat}
> With UV3, this call now produces a warning:
> {noformat}
> org.apache.uima.internal.util.Misc addUrlsFromPath(257) WARNING: Skipping adding "" to
URLs
> {noformat}
> It would be nice to have a `resMgr.setExtensionClassPath` method that just sets the parent
loader but without trying to add URLs.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message