[
https://issues.apache.org/jira/browse/SLING-11362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus resolved SLING-11362.
-------------------------------------
Resolution: Fixed
Fixed in
https://github.com/apache/sling-org-apache-sling-testing-sling-mock/commit/07497b27abc042a2becd77eebb0ac0c2b6e9b70b.
> Potential ClassCastException in SlingContextImpl.tearDown
> ---------------------------------------------------------
>
> Key: SLING-11362
> URL: https://issues.apache.org/jira/browse/SLING-11362
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Testing Sling Mock 3.3.0
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: Testing Sling Mock 3.3.2
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> In
> https://github.com/apache/sling-org-apache-sling-testing-sling-mock/blob/9d147a8127a6ada5a82e5c2b7e875febf2d93b89/core/src/main/java/org/apache/sling/testing/mock/sling/context/SlingContextImpl.java#L220
> the request attribute with key {{SlingBindings.class.getName()}} is
> unconditionally cast to {{MockSlingBindings}} which may fail in case the test
> case modified the request attribute to another SlingBindings implementation.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)