[
https://issues.apache.org/jira/browse/SLING-7096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Klco resolved SLING-7096.
-----------------------------
Resolution: Fixed
Fixed in
https://github.com/apache/sling-org-apache-sling-models-impl/commit/1f81d46ddcebab42fe25368c15311ed0622ff3e2
> Stack Overflow Exception in AdapterImplementations.getModelClassForResource
> ---------------------------------------------------------------------------
>
> Key: SLING-7096
> URL: https://issues.apache.org/jira/browse/SLING-7096
> Project: Sling
> Issue Type: Bug
> Affects Versions: Sling Models Impl 1.4.4
> Reporter: Dan Klco
> Assignee: Dan Klco
> Priority: Major
>
> Initially, I assumed it was fixed in the most recent version of Sling Models,
> as I wasn't able to reproduce it in AEM 6.3, however it does seem to happen
> for ServletResources.
> https://github.com/PerficientDigital/AEM-DataLayer/issues/1
> The problem occurs when you call the
> AdapterImplementations.getModelClassForResource method on a Resource has a
> ResourceType which resolves to the same resource. This causes an infinite
> regression and eventually a stack overflow exception.
> http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/impl/src/main/java/org/apache/sling/models/impl/AdapterImplementations.java
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)