jadx icon indicating copy to clipboard operation
jadx copied to clipboard

[core] Incorrect generation of variable types

Open bagipro opened this issue 1 year ago • 0 comments

Hey!

Please check the com/ebay/db/annotation/api/VersionMigration.java with the easiest example I found:

    private final java.util.List<com.ebay.db.annotation.api.EntityMigration> entityMigrations;
    public final java.util.List<java.lang.String> drainSql() {
        java.util.ArrayList arrayList = new java.util.ArrayList();
        java.util.Iterator<T> it = this.entityMigrations.iterator(); // <<<
        while (it.hasNext()) {
            arrayList.addAll(((com.ebay.db.annotation.api.EntityMigration) it.next()).drainSql());
        }
        return arrayList;
    }

The iterator is declared with the incorrect T type

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

bagipro avatar Jul 31 '23 17:07 bagipro