Sean Rohead created FELIX-4602:
----------------------------------

             Summary: TemporalServiceDependency does not properly propagate 
RuntimeExceptions
                 Key: FELIX-4602
                 URL: https://issues.apache.org/jira/browse/FELIX-4602
             Project: Felix
          Issue Type: Bug
          Components: Dependency Manager
    Affects Versions: dependencymanager-3.2.0
            Reporter: Sean Rohead


I have a service that throws subclasses of RuntimeException from some of it's 
methods. When wrapped in a TemporalServiceDependency, these calls throw 
UndeclaredThrowableException instead.

The fix is quite simple:

Wrap TemporalServiceDependencyImpl lines 182-188 in the following try/catch 
block:

try {
    ...
}
catch (InvocationTargetException e) {
    throw e.getTargetException();
}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to