Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The class org.apache.felix.framework.security.util.Conditions contains an ex.printStackTrace() at line 375 (method createCondition).
This is triggered when code - perfectly validly - implements a custom ConditionalPermissionAdmin service Condition type by subclassing org.osgi.service.condpermadmin.Condition and then registers it as the type of a ConditionInfo.
The result is a series of stacktraces dumped to stdout complaining about "NoSuchMethodException", although the code then correctly uses the alternate "subclass" approach instead of the static-factory-method approach.
This issue is present in current trunk, and back to at least version 1.4.2 of org.apache.felix.framework.security.