New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate supporting WithType for single input parameter of shadow method #6888
Comments
Hi @utzcoz, i want to work on it as it is also a part of my GSoC project (To improve shadowOf generation).. |
There are some possible solutions that include Replacing classes with Object and then using type-casting to convert it to particular type.. |
We are using this mechanism to avoid |
Currently, i am working on the same and soon I will update it here itself.. |
Description
Robolectric maybe need to add new shadow method with class type as input parameter, added from latest SDK, for example #6883. Developers can run related tests correctly when compileSdk is latest SDK. But if they change it to a lower SDK, related tests may failed because of
NoClassDefFound
problem. As @hoisie pointed out at #6884 (comment), we can investigate whether we can supportWithType
for single input parameter of shadow method.It's better if we can expand this feature to support simulation for non-shadow method with new class type, such as #6589. Maybe we can add internal wrapper methods likes shadow method to wrapper those normal methods with
WithType
.Steps to Reproduce
None.
Robolectric & Android Version
Latest Robolectric before this issue closed/fixed.
Link to a public git repo demonstrating the problem:
Robolectric itself.
The text was updated successfully, but these errors were encountered: