AnnotationProcessor fail with AutoValue
Sar777 opened this issue · comments
Arthur Antonevich commented
Hi, I am using AutoValue and have this result:
@AutoValue
@StorIOSQLiteType(table = CharactersTable.TABLE)
public abstract class LocalCharacter {
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_GUID, key = true)
public abstract Long guid();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_NAME)
public abstract String name();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_RACE)
public abstract Integer race();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_CLASS)
public abstract Integer clazz();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_GENDER)
public abstract Integer gender();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_MONEY)
public abstract Long money();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_TOTAL_KILLS)
public abstract Integer totalKills();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_TODAY_KILLS)
public abstract Integer todayKills();
@NonNull
@StorIOSQLiteColumn(name = CharactersTable.COLUMN_YESTERDAY_KILLS)
public abstract Integer yesterdayKills();
@StorIOSQLiteCreator
static LocalCharacter create(@NonNull Long guid, @NonNull String name, @NonNull Integer race, @NonNull Integer clazz, @NonNull Integer gender, @NonNull Long money, @NonNull Integer totalKills, @NonNull Integer todayKills, @NonNull Integer yesterdaykills) {
return new AutoValue_LocalCharacter(guid, name, race, clazz, gender, money, totalKills, todayKills, yesterdaykills);
}
}
Error:
Error:Problem occurred with StorIOProcessor: -1
AutoValue: 1.4.1
StorIO: 1.13.0
Sorry my bad english. Thx.
Ilya Zorin commented
Thanks for reporting! I'll look into it as soon as I can.
Arthur Antonevich commented
@geralt-encore thx.
Ilya Zorin commented
@Sar777 yesterdayKills
column doesn't match creators parameter yesterdaykills
.
There is PR with a meaningful error message instead of cryptic Error:Problem occurred with StorIOProcessor: -1
.
Arthur Antonevich commented
@geralt-encore shit.. Nice catch. thx.