Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Sling Models Impl 1.2.0
Description
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.