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

In case of class-cast exception, a component is still activated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      I recently found a very strange behavior with one of my components:

      1. there is a static bound setter for a service X
      2. in case of injection of X I call a method an perform some action on it
      3. if it now happens that a ClassCastException is thrown this seems to be silently ignored
      4. my activate method is called and the service seems to be registered sucessfully

      This is very bad, because I only noticed that something was wrong because it failed then later on and everything looks "normal" (no entry in the OSGi log for example, component seems to be activated...)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            laeubi Christoph Läubrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: