camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Börcsök József (JIRA) <j...@apache.org>
Subject [jira] [Created] (CAMEL-10127) OsgiDefaultCamelContext should call parent constructor with registry
Date Wed, 06 Jul 2016 09:30:11 GMT
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)

Mime
View raw message