Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3908

ex.printStackTrace present in production code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Framework Security
    • 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.

      See:
      http://svn.apache.org/viewvc/felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Conditions.java?view=markup

      Attachments

        Activity

          People

            Unassigned Unassigned
            skitching Simon Kitching
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: