You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2014/07/11 10:06:05 UTC
[jira] [Closed] (SLING-3683) Sling Models: ModelAdapterFactory
mixes up annotationProcessor in injectFieldOrMethod method
[ https://issues.apache.org/jira/browse/SLING-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Edelson closed SLING-3683.
---------------------------------
> Sling Models: ModelAdapterFactory mixes up annotationProcessor in injectFieldOrMethod method
> --------------------------------------------------------------------------------------------
>
> Key: SLING-3683
> URL: https://issues.apache.org/jira/browse/SLING-3683
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Reporter: Stefan Seifert
> Assignee: Justin Edelson
> Priority: Minor
> Fix For: Sling Models Implementation 1.0.6
>
> Attachments: 140620_SLING-3683_annotationProcessor.patch
>
>
> the method AdapterFactory.injectFieldOrMethod gets an annotationProcessor from the injectors if they implement the InjectAnnotationProcessorFactory.
> currently, if a injector does not implement this interface, the instance assigned to the annotationProcessor may be re-used from the previous injector which is not intended.
> patch attached.
> not tested, is there already a unit test where a test for this can should be added?
--
This message was sent by Atlassian JIRA
(v6.2#6252)