commit | 9bbe334bc14c1a2e48ed77579884f0c1abdf56fe | [log] [tgz] |
---|---|---|
author | Marcel Offermans <marrs@apache.org> | Thu Nov 26 09:32:19 2009 +0000 |
committer | Marcel Offermans <marrs@apache.org> | Thu Nov 26 09:32:19 2009 +0000 |
tree | 5306a2dbb9aa5e3cfcfee203cd8498a13bfb912b | |
parent | 15885af767723fc48ef3714d5d69a7d5df3c7c8c [diff] |
only invokes setAccessible() when necessary now git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@884475 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dependencymanager/dependencies/TemporalServiceDependency.java b/dependencymanager/core/src/main/java/org/apache/felix/dependencymanager/dependencies/TemporalServiceDependency.java index a531e91..02bdfec 100644 --- a/dependencymanager/core/src/main/java/org/apache/felix/dependencymanager/dependencies/TemporalServiceDependency.java +++ b/dependencymanager/core/src/main/java/org/apache/felix/dependencymanager/dependencies/TemporalServiceDependency.java
@@ -172,7 +172,12 @@ } } } - method.setAccessible(true); - return method.invoke(service, args); + try { + return method.invoke(service, args); + } + catch (IllegalAccessException iae) { + method.setAccessible(true); + return method.invoke(service, args); + } } }