commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISCOVERY-11) Service.providers Enumeration does not catch and discard UnsatisfiedLinkErrors and ExceptionInInitializerErrors
Date Fri, 08 Apr 2011 16:20:06 GMT

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

Simone Tripodi commented on DISCOVERY-11:
-----------------------------------------

Fine, thanks for the feedback, I'm going to modify the code according to your suggestions
:)

I didn't want to hijack this thread, so I raised another issue related to this enumeration,
can you help me please having a look at DISCOVERY-17?
Many thanks in advance!

> Service.providers Enumeration does not catch and discard UnsatisfiedLinkErrors and ExceptionInInitializerErrors
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: DISCOVERY-11
>                 URL: https://issues.apache.org/jira/browse/DISCOVERY-11
>             Project: Commons Discovery
>          Issue Type: Bug
>    Affects Versions: 0.4
>         Environment: Windows, Sun JDK 1.5.0.10
>            Reporter: Michael Rudolf
>
> The enumeration created by Service.providers does not catch UnsatisfiedLinkErrors and
ExceptionInInitializerErrors. The former can arise, if a class contains a call to System.loadLibrary(String)
in its static initializer, while the latter will be thrown, when a runtime exception is thrown
from the static initializer. Service.providers should catch and ignore these and it should
simply discard the class provoking the error as not available. As of version 0.4, Commons
Discovery just forwards these errors.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message