alibaba / alibaba/AndFix

Problem when working with EventBus

Open
#28 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I believe, the class name was changed after patched.

![test](https://cloud.githubusercontent.com/assets/11962337/10068407/c0fe91fc-62d6-11e5-9ffb-e0bb63e40043.png)

java.lang.IllegalArgumentException: expected receiver of type com.**_.activity.MainTabActivity_CF, but got com.**_.activity.MainTabActivity
09-24 15:53:29.530 6616-6736/? E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
09-24 15:53:29.530 6616-6736/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:525)
09-24 15:53:29.530 6616-6736/? E/AndroidRuntime: at
de.greenrobot.event.EventBus.invokeSubscriber(EventBus.java:498)
09-24 15:53:29.530 6616-6736/? E/AndroidRuntime: at de.greenrobot.event.EventBus.postToSubscription(EventBus.java:433)
09-24 15:53:29.530 6616-6736/? E/AndroidRuntime: at de.greenrobot.event.EventBus.postSingleEventForEventType(EventBus.java:410)
09-24 15:53:29.530 6616-6736/? E/AndroidRuntime: at de.greenrobot.event.EventBus.postSingleEvent(EventBus.java:383)
09-24 15:53:29.530 6616-6736/? E/AndroidRuntime: at de.greenrobot.event.EventBus.post(EventBus.java:263)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the stack trace in de.greenrobot.event.EventBus, especially invokeSubscriber at line 498, and inspect how MainTabActivity is registered and receives events. Reproduce the receiver mismatch and determine why the expected MainTabActivity_CF class differs from MainTabActivity; done means EventBus no longer raises this IllegalArgumentException for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.