You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Börcsök József (JIRA)" <ji...@apache.org> on 2016/07/06 09:30:11 UTC

[jira] [Created] (CAMEL-10127) OsgiDefaultCamelContext should call parent constructor with registry

Börcsök József created CAMEL-10127:
--------------------------------------

             Summary: OsgiDefaultCamelContext should call parent constructor with registry
                 Key: CAMEL-10127
                 URL: https://issues.apache.org/jira/browse/CAMEL-10127
             Project: Camel
          Issue Type: Bug
          Components: camel-osgi
    Affects Versions: 2.17.1
            Reporter: Börcsök József


OsgiDefaultCamelContext constructor doesn't call super to pass registry so inconsistent registries are set in DefaultCamelContext and DefaultCamelContext instances.

If a client create OsgiDefaultCamelContext with custom registry then (private) variable in DefaultCamelContext is not initialized and a different new instance will be created by getRegistry method.

Either scope of registry in DefaultCamelContext should be changed to protected or OsgiDefaultCamelContext should pass the reference.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)