[ 
https://issues.apache.org/jira/browse/SLING-11362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus closed SLING-11362.
-----------------------------------

> 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.10#820010)

Reply via email to