Skip to content
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

[core] Use of Object type instead of template type #836

Closed
bagipro opened this issue Jan 24, 2020 · 1 comment
Closed

[core] Use of Object type instead of template type #836

bagipro opened this issue Jan 24, 2020 · 1 comment
Labels
bug Core Issues in jadx-core module

Comments

@bagipro
Copy link
Collaborator

bagipro commented Jan 24, 2020

Hi, I've noticed an issue that prevents method resolution. Class com.samsung.knox.securefolder.util.WeakReferenceHandler

public abstract class WeakReferenceHandler<T> extends android.os.Handler {
    private java.lang.ref.WeakReference<T> mReference;

    public void handleMessage(android.os.Message message) {
        java.lang.Object obj = this.mReference.get(); // should be "T t = ..."
        if (obj != null) {
            handleMessage(obj, message);
        }
    }

    public abstract void handleMessage(T t, android.os.Message message);

there are many of them, but it could be a simple case

APK: https://drive.google.com/file/d/1eEUDrNOTySdg4YCAFhtrG4514KOibJzE/view?usp=sharing

@bagipro bagipro added bug Core Issues in jadx-core module labels Jan 24, 2020
skylot added a commit that referenced this issue Jan 27, 2020
skylot added a commit that referenced this issue Feb 16, 2020
@skylot
Copy link
Owner

skylot commented Feb 16, 2020

Fixed. Anyway many other cases with generics not yet covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Core Issues in jadx-core module
Projects
None yet
Development

No branches or pull requests

2 participants