You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Simon Kitching (JIRA)" <ji...@apache.org> on 2013/02/19 15:59:12 UTC
[jira] [Created] (FELIX-3908) ex.printStackTrace present in
production code
Simon Kitching created FELIX-3908:
-------------------------------------
Summary: ex.printStackTrace present in production code
Key: FELIX-3908
URL: https://issues.apache.org/jira/browse/FELIX-3908
Project: Felix
Issue Type: Bug
Components: Framework Security
Reporter: Simon Kitching
Priority: Minor
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.
See:
http://svn.apache.org/viewvc/felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Conditions.java?view=markup
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira