You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Christoph Läubrich (Jira)" <ji...@apache.org> on 2022/07/31 06:48:00 UTC
[jira] [Created] (FELIX-6552) In case of class-cast exception, a component is still activated
Christoph Läubrich created FELIX-6552:
-----------------------------------------
Summary: In case of class-cast exception, a component is still activated
Key: FELIX-6552
URL: https://issues.apache.org/jira/browse/FELIX-6552
Project: Felix
Issue Type: Bug
Components: Declarative Services (SCR)
Reporter: Christoph Läubrich
I recently found a very strange behavior with one of my components:
# there is a static bound setter for a service X
# in case of injection of X I call a method an perform some action on it
# if it now happens that a ClassCastException is thrown this seems to be silently ignored
# 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...)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)