Broken generation for parameterized view.
See original GitHub issueBroken generation if view interface is parameterized of any. Example:
@StateStrategyType(SingleStateStrategy.class) public interface CommonView<T> extends MvpView { void showParametrizedData(T any); }
@StateStrategyType(SingleStateStrategy.class) public interface MainView extends CommonView<String> { void showNotParametrizedData(String any); }
Gradle log:
:app:javaPreCompileDebug /home/valdzx/Workspace/github/MoxyTesting/app/build/generated/source/apt/debug/ua/com/vald_zx/moxyissuesample/mvp/main/view/MainView$$State.java:27: error: cannot find symbol public void showParametrizedData(T any) { ^ symbol: class T location: class MainView$$State /home/valdzx/Workspace/github/MoxyTesting/app/build/generated/source/apt/debug/ua/com/vald_zx/moxyissuesample/mvp/main/view/MainView$$State.java:58: error: cannot find symbol public final T any; ^ symbol: class T location: class MainView$$State.ShowParametrizedDataCommand /home/valdzx/Workspace/github/MoxyTesting/app/build/generated/source/apt/debug/ua/com/vald_zx/moxyissuesample/mvp/main/view/MainView$$State.java:60: error: cannot find symbol ShowParametrizedDataCommand(T any) { ^ symbol: class T location: class MainView$$State.ShowParametrizedDataCommand 3 errors
Bug actual for version Moxy 1.5.5 On 1.5.3 works fine.
Sample https://github.com/ValdZX/MoxyTesting
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
I managed to fix this problem, so I create PR shortly after some cleanup.
@shaders could you help with publishing of new moxy version, pls?) There is merged this PR