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

Reply via email to