Stefan Seifert created SLING-5010:
-------------------------------------
Summary: Sling Models: Stale
StaticInjectionAnnotationProcesssorFactory list depending on bundle startup
order
Key: SLING-5010
URL: https://issues.apache.org/jira/browse/SLING-5010
Project: Sling
Issue Type: Bug
Components: Extensions
Affects Versions: Sling Models Impl 1.2.0
Reporter: Stefan Seifert
Assignee: Stefan Seifert
Priority: Critical
Fix For: Sling Models Impl 1.2.2
scenario:
* sling models impl 1.2.0
* another bundle providing custom sling model annotations with a custom
StaticInjectAnnotationProcessorFactory implementation
* a sling model annotated with this custom annotation that has an flag optional
= true
depending on startup order the optional flag is evaluated as true or false. if
one of the bundles is restarted the flag is evaluated correctly.
reason: depending on startup order the model may get added to the
modeladapterfactory before the StaticInjectAnnotationProcessorFactory is
registered. than the optional flag is not evaluated correctly. if the
StaticInjectAnnotationProcessorFactory is registered a few moments later the
(wrong) result is still cached in the ModelClass instance.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)