alibaba / alibaba/AndFix

andfix exception :

Open
#348 4 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

java.lang.IllegalAccessError: Method 'void xxx.ui.MainActivity_CF.willJump(xxx.bean.MainTypeBean)' is inaccessible to class 'xxx.ui.MainActivity_CF' (declaration of 'xxx.MainActivity_CF' appears in /data/user/0/xxx/files/apatch/padfix-1_2_0_586-3.apatch)
at xxx.ui.MainActivity_CF.onClick(MainActivity.java:429)
at android.view.View.performClick(View.java:5204)
at android.view.View$PerformClick.run(View.java:21170)
at android.os.Handler.handleCallback(Handler.java:743)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:772)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:662)

![image](https://user-images.githubusercontent.com/11494163/28253493-1e042312-6ad7-11e7-8304-55b5a7a0fd0e.png)

修复代码1

![image](https://user-images.githubusercontent.com/11494163/28253675-d08320be-6ad8-11e7-9974-ce4418a14314.png)

修复代码2

![image](https://user-images.githubusercontent.com/11494163/28253484-096fdef0-6ad7-11e7-8bbe-8051d0a276dd.png)

![image](https://user-images.githubusercontent.com/11494163/28253499-3754e4d2-6ad7-11e7-9b6a-c0eb70ab4261.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the stack trace in MainActivity.java at line 429 and review the attached reproduction and fix-code screenshots. Determine the conditions that produce the IllegalAccessError in the AndFix hot-fix path, then verify that the affected click flow no longer raises the exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
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.